A study found people with insomnia and took melatonin supplements were more likely to be diagnosed with heart failure.