It can lead to a slow heartbeat (bradycardia) and irregular heartbeats, including atrial fibrillation . Electrolyte imbalance. Substances in the blood called electrolytes — such as potassium, sodium, calcium and magnesium — help trigger and send electrical impulses in the heart.