That does explain a lot, why you have the triggers you do now.
I do think it was a spell of intense anxiety. Maybe not panic but it can certainly freeze you so you literally can't move. Of course I'm not a doctor so my knowledge is limited. Did you go to the dr when you were back on your feet and tell him about the episode?