When I was about 10, my dear great aunt advised me that sleeping on one’s back is conducive to nightmares. I started sleeping only on my side, and my occasional nightmares disappeared. I have nightmares so rarely that I can count on two hands the number I’ve had in my entire life.
Thanks. That's another simple thing to try for anyone having bad dreams.