It has been suggested by Nox that nightmares manifest according to an individual's mental state, influencing the content of their dreams.
Nightmares