Chest pain can be caused by various reasons, including minor problem such as indigestion
or stress, to serious medical emergencies such as a heart attack
The symptoms as mentioned in your post suggest that it might be due to underlying cardiac pathology.
So, investigations like an Electrocardiogram or Stress Echocardiography
can clinch the diagnosis.
Other causes of chest pain include:
1. Strained chest muscles due to overuse
2. Respiratory tract
3. Short-term, sudden anxiety with rapid breathing
4. Peptic ulcer
5. Pain from the digestive tract, such as esophageal reflux
So, it will be better to consult a Doctor & get a physical examination done to rule out other causes. So that proper management steps could be taken.
Wishing you a Good Health. Let me know if I need to clarify further.
Thanks & take care.