Sleeping well is important for well being, and a recent study has shown it might also affect heart health. Sleep deprivation, insomnia, or too much sleep can create problems with blood pressure and hormone levels that can contribute to heart attacks.