I used to have it often. I’m not sure whether I have narcolepsy but I do have C-PTSD and nightmare is one of the symptoms. I don’t have it as often anymore. Like Thunder Bow said, trying to reduce stress might help. I’m happier and more stable now so I don’t have it as often.