I had a time when I started to get panic attacks, after a traumatic experience, and I just sat down for five minutes, cleared my mind by concentrating on my breathing, counting the seconds between breathes, and once I had some control over my breathing the panic attack subsided and I was able to carry on.
It is a mental issue and can be very severe with some people, I consider myself to be a rational person who can be in full control of my emotions, and I don't want to take drugs or turn to alcohol to try and calm myself down, that is the wrong solution because it only mask's the problem and does not help in the long term.
You have to find where the problem is, address it, and face it head on, it is hard, but it works for me.
When the fun Stops, STOP!