Researchers have found evidence that taking melatonin for a year or more is associated with a higher risk of heart failure.