I was predisposed to anxiety already, and I think this experience led me into developing mild to moderate panic disorder which was driven by fear of experiencing this state again. So it become a vicious circle. A fear of fear which, ironically, became a trigger for the feared thing. I believe it was made worse by my highly philosophical brain, and a deep immersion in existential philosophies. In particular Buddhism. So I was already used to a worldview which was challenging existentially let's say. Looking back, I was probably too young at the time, and maybe too anxious, to be immersed in all this naval gazing given my mental health.
Decades later I'm OK, but I have residual panic feelings surfacing sometimes. The difference now is that I don't identify with them, I just see them as fleeting feelings producing a distorted sense of reality. The secret with anxiety, for me at least, is to not care if you feel anxious and to let it pass.