I get nightmares quite often, Ive been told that if you exhaust yourself before bed it can help you not have nightmares as much. Sometimes that works. Not eating close to bedtime is meant to help too, but I dont know if that one actually does.
If you believe in dreams having subconscious...