Could mostly be due to stress, anxiety, or the way you sleep, but tbh I'm not 100% sure. What i can recommend though is for you to remain calm when/if you experience it again. Trying to force yourself to physically move can lead you to experience more stress since sleep paralysis is mainly due to you waking up prematurely, though I cant really talk......