People with congenital heart defects, and their caregivers or family members, can take steps to help prevent complications of their condition or from surgical treatments of their congenital heart defect. Anti-arrhythmics. These drugs control arrhythmia and may be used for patients whose congenital heart defect causes arrhythmia. Antibiotics..