well obviously check it out but i was having similar things at night like whenever i was really relaxed or about to fall asleep my heart would feel like it was beating with a lot of force and abnormally fast. THUMP! and sometimes it felt like it was missing beats.
i went to the doctor they ran all the tests and my heart came back perfectly healthily but i ended up having an overactive thyroid. not a big deal, it was some temporary thyroid problem that can happen to anyone, it cleared up in a few months, the gave me some extremely small dose of a beta blocker to slow it down and it worked well.
just to let you know, if you life in the USA and go to the emergency room, if you tell then your heart feels weird and your having palpitations they take you immediately without waiting or paperwork.
thyroid is somewhat common cause of these irregular heart beats, I'm an 18 year old male and it happened to me, its possibly caused by stress I've heard... i think that was the case for me.. but ya I'm totally fine now about to start swimming this fall for my college!