This answer has advice for slow breathing, stress management advice, and the name of a good self-help book.
https://answers.yahoo.com/question/index?qid=20180307051013AAgFkXn
If you read When Panic Attacks by psychiatrist David Burns, the author recommended most often by professionals for depression, you'll see that the key to overcoming panic disorder is understanding the problem. This is just a phobia, a fear of harmless things. When people come to see the attack as a nuisance, like the dizziness you get from a roller coaster, the attacks become less severe and less frequent, or they go away altogether. Instead of thinking that you have to calm down when an attack happens, says Burns, the best thing is to try making yourself as scared as possible. Have a horror movie handy. If you're afraid of doing something silly in public, do that.
An official British health agency lists recommendations - search with "NICE anxiety." Drugs like Xanax and Valium are NOT recommended for panic attacks.
It may be that this is a symptom of an anxiety disorder you should get professional help for. Below - 9 signs of an anxiety disorder.
https://www.rd.com/health/conditions/anxiety-disorder-symptoms/1/