I experienced something similar, maybe 5x in my life: I wake up mentally but I am asleep physically. So somehow I am trapped in my body awake. I can’t move any limb nor open my eyes. I start to panic and after some time I can move a bit, and then a bit more and so on. It’s quite stressful and freaky.