I can get pretty bad sleep paralysis, night terrors, if I get too hot while sleeping. So I make sure I don't overheat while asleep which definitely makes a difference towards the sleep paralysis.
Nightmares and sleep paralysis are slightly different things so not sure if my suggestion is very helpful.