You should contact your doctor if you experience heart palpitations frequently, for longer than a few seconds, or if they are accompanied by dizziness, loss of consciousness, chest or upper body pain, nausea, excessive or unusual sweating, and shortness of breath.