It does sound like anxiety/panic, manifesting in a way different than the usually described fashion. We can get into fight, flight and/or freeze.
I have seen people experiencing the "freeze" by contracting into a ball, acting much like you've described.
I am sorry you suffer with these episodes.
I hope you can eventually find a way to avoid them or disrupt them.

WC