The occurrence of nightmares could be due to heart conditions, migraine, sleep deprivation and beta blockers.