First, that sounds like a typical anxiety attack. Anxiety can come from specific triggers and identifying common factors like when and where you have these attacks can be helpful. Consultation with a therapist can be helpful in this case. In the meantime, I would suggest a few basic coping skills that you can try for yourself but please consider that they are NOT a substitute for therapy or a health professional.
Next Steps
Mindfulness based meditation can help reduce your stress in general and comes highly recommended with a number of other health benefits. Additionally, I would suggest trying to find things that help you cope with the stress while you're having a panic attack. Grounding exercises that rely on focusing on your five senses during a panic attack can help. You can look for further coping skills but for example, try and look around you for 5 things you can see, 4 things you can hear, 3 things you can touch, 2 things you can smell and one thing you can taste. It's a brief exercise to help you return to the present. Deep breathing can also be really beneficial in these cases.
Health Tips
In general, over a long time, anxiety attacks can lead to chronic stress which has a number of ill health effects. Again, I would recommend seeing a professional therapist to address the root cause as medication predominantly addresses only the symptoms.