The research found that people with specific genetic traits like anxiety or depression are at a “significantly higher heart attack risk.”