Congenital heart defects, medically known as congenital heart disease, increase the risk of heart failure.