I had it twice, and thought it might have been a symptom of early psychosis before I knew what it was. It felt more like a dream TBH. Both times I somehow ended up sleeping on my back, and was majorly sleep deprived, though. Sleep deprivation is one of the leading causes of bad shit, so I would suggest just... Sleeping enough. Also don’t open your fucking eyes holy shit