This is a topic that generates a lot of excitement, both pro and con.
You're not likely to get much of a straight answer. At least not from anyone of authority. They don't dare tell you that it's not a serious problem, for fear of litigation if someone dies. For similar reasons, they tend to advocate for better than average fitness.
Like anything, you're likely to have better performance and more fun if you are in good shape, but is heart attack more likely or more serious for scuba divers? I've never seen any evidence that it is. One of the problems is this: If someone dies from a heart attack while skiing, they don't call it a "skiing accident", they call it what it is, a "heart attack". But if you have a heart attack while scuba diving, it's recorded as a "scuba accident".
There are a number of things that people die from, all the time. For some reason, it's okay if people die of these things while persuing other activities. But, the "scuba industry" feels compelled to protect people from themselves. They'll point out, rightly, that if you die of a heart attack underwater, you could be a hazard for your buddy. But if you die of a heart attack while driving down the freeway, you're a hazard to way more people. But no one restricts your driving license until you've deteriorated to an invalid.
I will admit that the scuba biz is making improvements in this area. It used to be an absolute rule that diabetics were not allowed to dive. So, millions (yes millions) of diabetic divers just didn't disclose that they were diabetic. Eventually when the scuba biz realized that there were millions of diabetic divers and that they didn't have an accident rate any worse than non-diabetic divers, the scuba biz finally relented (for the most part.)