They can be triggered by stress, exercise, medication, or, in rare cases, a medical condition. Although heart palpitations are unsettling, they are usually harmless. They can, in rare cases, be a symptom of a more serious heart condition, such as an irregular heartbeat (arrhythmia), which may necessitate treatment.