Avoid triggers for arrhythmias. Get treatment for other health conditions that may cause arrhythmias. Make heart-healthy lifestyle changes, such as choosing heart-healthy foods, being physically active, aiming for a healthy weight, quitting smoking, and managing stress. Talk to your doctor if you need heart surgery