it would be very unusual for a 17-year-old to have heart trouble and it's equally unusual for heart pain to occur on the right side of the chest. but you did the right thing in getting this checked out. what you describe sounds very much like a muscle spasm. these can be extremely painful but resolve relatively quickly. muscles can go into spasm for many reasons including exercise injury dehydration or the lack of certain minerals like potassium. having 'attacks' of the type you describe isn't all that abnormal. throughout life it's normal to have occasional aches and pains. however if you feel there's something seriously wrong then i suggest you continue to pursue a medical answer. you can start with your primary care physician. the headaches probably are a different matter altogether but again it would be a good idea to consult a physician. wishing you well!
i am 17 & male having "attacks" which last around a minute. the area between my right nipple & shoulder gets very tight. this has been happening over the course of a year and stopped for about a month then recently began happening again. during the attacks i have to stop whatever i'm doing and just grasp the area in pain and check my pulse which seems to be normal. i had an ekg done about 3mo's ago and everything checked out. however after having experienced yet another one a couple of minutes ago i'm following my gut in knowing that something is wrong. also began having sudden headaches in the back of my head.