Hello,
Understand your predicament. As mentioned your symptoms could be due to an entity called sleep paralysis. When this happens in sleep the person has difficulty moving his hands or feet. This is the symptom of a sleep disorder called Narcolepsy. This sleep disorder is characterized by excessive day time sleepiness, sleep paralysis, cataplexy where the person has episodes of loss of muscle function while awake, hypnogogic hallucinations and automatic behavior. You will need to consult your primary care physician, who may schedule you for a polysomnogram (sleep test) to rule out sleep disorders and initiate appropriate therapy. Best regards.
I believe the best thing to do is not to panic as that makes it worse and lasts longer. I know that a hard thing to ask but i believe it is the best thing. when you realize that you are sleep paralyzed try and relax and have calming thoughts. at least try it and see if it works, might take a few try's till you can tam the art of it.
Best of luck