Is There a Word For Nightmares While Awake?

I was out running a few minutes ago and as usual my mind wandered. Daydreaming, most of the time. Then, suddenly, something I saw triggered a bad memory and warped it into the image before me, and I found myself having a nightmare, completely unable to shake it off. I was totally absorbed by it for the last five km. Needless to say it was quite unpleasant.

This probably has to do with me trying to correct my sleep schedule and therefore not sleeping well for a few nights. Maybe I shouldn’t have exerted myself physically today, but I didn’t (and still don’t) feel tired at all.

This begs the question, though: is there a word for the experience? Daymare? Daydream nightmare?

-- CC0 Björn Wärmedal