Not your heart
There are many causes of sharp chest discomfort and given your self recognized anxiety
, you likely think the worst.
Musculoskeletal causes are most likely, but gastrointestinal and pulmonary causes, as well as the protean manifestations of anxiety, can be th culprit. There are cardiac causes potentially, but much less likely. Set up an evaluation with your doctor. Some testing may be in order.