Remember. Seek medical help if you experience chest pain or dizziness!!
It is not uncommon to feel strong heart beats, and it is also not uncommon to notice strong heart beats as you drift off to sleep. The presence of strong heart beats, or palpitations, is a symptom of several conditions, not necessarily a serious matter. In fact, palpitations are quite often not a serious matter at all, (especially if you are not experiencing other symptoms with it, such as chest pain or dizziness.)
Yes, it is always best to consult your doctor about everything, but it is unlikely that you are at risk, and more than likely that you are just experiencing benign palpitations. Lot's of people have 'em, and they are noticable when you lay down or drift off to sleep. My suggestion would be to talk yourself out of your state of alarm so that you can get some rest, and stop obsessing about this. Then go back and see your doctor so that your palpitations can be properly diagnosed. A proper diagnosis generally involves wearing a heart monitor for a period of time, but your doctor will know what to do after talking to you about all of you symptoms.
In the meantime, you might as well get started on the lifestyle modifications you know the doctor is going to remind you about . Eat right, exercise (as directed by your doctor of course), reduce alcohol and caffeinne, no smoking, etc, etc, you know the drill. Eliminating a few factors in advance can be helpful in terms of making the diagnosis you want.
Best of luck.