Ewwww, I hate that! The night before DH's surgery I dreamed it was ME getting the surgery... only it wasn't his doc doing the surgery - it was the guy who coaches our students AND, he was doing it with me in a recliner in his living room. I backed right outta that surgery, lol!
It's just subconscious scrambled reality. I wake up I'm fine, but when I go back to sleep the same part of my brain reactivates and its stupidity all over again. I even get mad in my dreams and think how ridiculous it all is and try to wake myself up lol
Irritability is sure no fun. I'm sorry you're going through it. Try to remember it will pass. I hope you can sleep most of it off.
Hopefully the air won't piss you off tomorrow and you can get some sunshine and dirt under your fingernails. There's some science about some microorganism in soil that boosts our mood. Was pretty cool to read about, but didnt' tell me anything I didn't already know - gardening is good for the soul.
When I lose sleep to nightmares, I'm a mess the next day. I had a prescription sleep aid for a week a couple years ago to get me out of the nightmare-sleep deprivation loop.