Unfortunately intermittent pain are difficult to diagnose. But from the location, character and duration of pain as described, the pain is unlikely to be coming from the heart. I would recommend seeing a primary care physician for a proper exam +/- blood tests and imaging.