An arrhythmia is an electrical malfunction of the heart causing an irregular heartbeat. It can be too fast, too slow, or erratic. Often they're very brief. If they last longer, the heart could start pumping less effectively. This can often be corrected by a pacemaker, ICD, and/or medications. An arrhythmia is not a heart attack.