Where you went wrong is getting it backwards. The vaccines are orders of magnitude less likely to cause cardiac problems than the virus itself, for fairly obvious medical reasons.
And that cardiac events in both cases are a minor part of the greater effects and dangers of catching the disease.
So it's about not focusing on the wrong things