Medicines are the main treatment for heart failure, but for some people surgery may help. Operations that can help with heart failure include: heart valve surgery. a coronary angioplasty or bypass.