Hello and welcome to Healthcare Magic. Thanks for your query.
The likely causes for your rapid heartbeat, difficulty in breathing and chest pain
/ panic attacks
2) Cardiac problem
Considering your young age, the absence of risk factors for heart disease
, and the fact that your symptoms subsided after relaxing, it is more indicative of a anxiety-related problem. However, to rule out any serious problem, I would advise you to have a proper medical evaluation, including an ECG. So, please see a doctor for further evaluation.
Wish you all the best.
Dr. Sheeba Stephen
Emergency Medicine Specialiste Specialist