Hi... You are experiencing panic attacks. As you say if they are triggered by past negative memories, then they are purely psychosocial in nature. Therefore, will require only psychotherapy/counselling. If the frequency and intensity of your panic attacks are debilitating or impairing your daily life functioning, then medications may be introduced.
Next Steps
Consult a Psychologist.
CBT along with Lifestyle Changes and Interpersonal Guidance and Counselling is required.
Health Tips
Mr. Gunjan Maithil
Senior Psychologist
Cell: nine six seven one three zero three one three four
Website: https://gunjanmaithil.wixsite.com/therapy
App: http://wix.to/fECHB08?ref=cl