Thank you for the query.
Chest area is quite hard to diagnose as we have in this area nerves from abdomen, lungs, heart, esophagus
and rib nerves and muscles. Esophageal spasm should not cause such pain. It should rather give occasional problems with swallowing.
Your symptoms can be caused by heart issues, gallstones or rib muscles and nerves issues.
Heart problem present at such young age are heart arrhythmia
or mitral valve prolapse
for example. It is quite characteristic for heart pain to radiate to the left arm or jaw. It can appear and disappear suddenly. To diagnose such issues, 24 hours Holters ECG and heart ultrasound
should be done.
Gallstones pain is usually triggered by a meal and gives nausea as well.
Rib nerves pain is sharp, well localized. Gets stronger when breathing and can be unnoticeable when not moving the chest.
I suggest you to visit cardiologist for mentioned heart tests. You should also try Magnesium
400 mg a day supplementation and avoid coffee. Very often Magnesium can solve mild heart problems.
Hope this will help.