hello, i just experienced the worst heart palpitations of my life that lasted about 3-5 minutes, during this i had extreme chest pain that went up to my throat, i tried to not move as with every little move i felt like i was losing consciousness and was about to faint, i had no trouble breathing and no shortness of breath.

I think the cause might be coffee as i  experienced mild palpitations before which i think were due to coffee, but nothing like this, i felt like i was seriously about to die.

i'm really having trouble dealing with the info of google, was this possibly a heart attack? a panic attack? or just bad heart palpitations?

i'm asking because apparently if it was a heart attack then i should do something about it right now, thanks.