Not enough oxygen to the brain. Sit down and breathe
I once woke up because I thought someone was knocking on my door. When I tried to answer it my legs kept giving out on me, like my knees wouldn't work, and my vision kept blacking out and coming back it .I finally scrambled to my door (I dunno, but it felt imperative to answer the door) and when I opened it there was no one on the other side.
Scary O.O