If you are suddenly notice you get it while sleeping on your back and you are having trouble breathing, it might be worth looking into a sleep study for sleep apnea. If you are prone to allergies or asthma, that could also cause that.
Tho I have also got hallucinations from dehydration and being sleep deprive. Even if monster/ghosts/demon were real, I am not really scared of them.