You need to step back, literally take a breather, and tell yourself that things will be ok... keep your mind occupied... panic attacks are not fun, and they're hard to understand by others. Use meds like xanax as a last resort. Try some more natural products that contain herbs such as valerian, passionflower, L-theanine, 5-HTP, chammomile, etc.