Hi Ronigav, Welcome to HealingWell.
Due to the going to sleep and waking aspects of the symptoms you describe, check out this phenomena. /en.wikipedia.org/wiki/Hypnagogia/en.m.wikipedia.org/wiki/Hypnopompia
Hypnogogic are events perceived while falling asleep, Hypnopompic are events that occur while waking.
For a bizarre phenomenon that's benign, but inexplicable, look up "Exploding Head Syndrome"./en.wikipedia.org/wiki/Exploding_head_syndrome
Hope this helps in your research.