Having trouble sleeping? If so, you could have a moderately higher risk of having a heart attack, according to new research. In a recent study, the risk of heart attack in people with insomnia ranged from 27 percent to 45 percent greater than for people who rarely experienced trouble sleeping.