It's kind of just there in the title but for background, this is what happened. I'm writing this more for myself but any advice is great. Basically it went down like this. I was playing through some aim training, which is what I usually do right before I head off to sleep. I was adjusting my hand to do something and went from sort of a claw grip to fingertips only, and something just stopped me, right in that moment. The next thing I realize, I'm playing through a run and doing way better than my average. I realize at this point that due to my old mouse which I had switched off of just yesterday, I had changed my grip to accommodate the mouse, most likely.

That "most likely" triggered... something. It was like I was stuck in a loop of thinking. "I changed my grip for this mouse. But when did I change my grip? Why dont I remember?" That last part, it just kept repeating and repeating, like an echo chamber inside my skull. "Don'trememberdontrememberdontrememberdontremember". If you've ever seen one, it was like those "madness" scenes in anime where a single word is written on the background over and over. It scared me. I don't scare easy, but for some reason not remembering this one detail about how I hold the mouse triggered what I can only guess was an anxiety attack.

 I guess I'm looking for guidance? Advice on how to deal with this? This has never happened before and while i dealt with it this time, I'd like to know if there's a way to prevent it, for my own sake. Again, I was mostly just writing this to get it out of my head.

TL:DR I just had an anxiety attack for the first time and don't know the first thing about preventing future ones. Help.