On a night time while I am trying to fall asleep I will get weird thoughts/scenarios come into my head it's like im dreaming while I am still awake. For example yesterday I walked over a bridge on the docks over the top of the river. The following night in bed I couldn't stop a continuing scenario in my head that I either fell into the dock or jumped in myself and instantly regretting it. Which forces a mini panic in bed which of course causes discomfort and stops any attempt of me falling asleep. The thoughts change from week to week and always consists of me either doing something instantly regrettable or a scenario in which I completely embarrass myself. Is there a term for these weird events on a night and does it sound similar to what anyone else experiences? Thanks guys and girls any feedback is appreciated.