A simple technique I regularly use to try and control the thoughts that become uncontrollable during a panic attack.
Watch repetitive animations
Watching repetitive animations while you are feeling anxious is a great way to start taking back control.
Play games to calm anxiety and ease panic
Playing simple, repetitive games on your phone can sometimes help when you feel the onset of an anxiety or panic attack.