Are you getting these close to wake up time ? It is normal to have inability to move body , called sleep paralysis , during certain stages of sleep. This sometimes may transiently be felt when waking up. This can cause anxiety and hallucinations. Or it can happen as part of certain sleep disorders. For a detailed evaluation consult a Neurologist
Health Tips
Follow sleep hygiene, Stress control