AGGHHH!! I wish for a better memory. In essence, accurate details forgotten, its but one example of stress affecting the sleep slope: on the way down or the way back.
On the fringes of the sleep state, it is not uncommon for the "sleep paralysis", which stops you falling out of bed, to act too early or stop too late. In these conditions, the brain attains / retains external awareness, though the body has already entered / hasn't yet left the sleep state.
The major side effect is a physiologically based absolute terror: you feel you are awake and paralyzed. This leads especially to magnification of perceived sounds, and magnification of minor shadows. Each symptom creates the impression of a major significant event or an intruder. Essentially, the body floods with adrenalin and the fight or flight reflex gets overextended.
Having lived through stress times when both were regularly experienced, I can state that if you don't have any knowledge of why you are feeling as you are, the perceieved external events become believed as real events. Even when aware of the physiological basis, its still an effort to convince yourself the paralysis is not a matter of concern.
I'll never forget the night the young woman was murdered, screaming continually, in the ceiling of my bedroom. Thank gosh, it was a sleep issue, not a real murder. Yet, 47 years later, I still remember the event as if it was a real occurrence last night.
Don't worry, Exploding Head Syndrome is harmless.
Now a related condition -- Varicose Head Syndrome -- can be annoying but it's one step below Exploding Head Syndrome, so for those affected I say just get a bigger hat (and smaller ego, and perhaps a me-ectomy) and don't worry about it.