From Longman Dictionary of Contemporary Englishon/under pain of deathon/under pain of deathKILLat the risk of being killed as punishment, if you do not obey Communist activity was prohibited on pain of death. → pain
Examples from the Corpus
on/under pain of death• In effect, each is swearing to keep it on pain of death.