It is not even close to possible, with current technology, to prevent unexpected heart attacks. They happen, and there is no known method to predict all heart attacks. Even if you limit the maximum age for commercial flying to 30, there will still be a few who sneak through and still have a heart attack. You can't prevent all engine failures, or MR blade failures, either. Life is a dangerous proposition, and nobody gets out alive.