This literally just happened to me.

I had been sleeping for less than 20mins.

I need to figure out how to take being concious that I am dreaming in my stride, instead of being afriad of being unable to move my body.