Consider if any of these common causes of nighttime heart palpitations could be affecting you and try to address the issue. If you think your eating habits may be responsible, watch what you eat and drink late in the day and early evening and opt for healthier snacks or herbal tea. If stress is the problem, add some relaxation techniques to your bedtime routine. Try deep breathing, meditation, stretching, journaling, or reading. Regular exercise also can help you maintain a normal heart rate.