This sounds like supraventricular tachycardia, a heart arrhythmia which is frequently associated with an abnormal electrical pathway within the heart. Did it begin and end suddenly? If it is SVT, coughing and other manoeuvres that stimulate the vagus nerve may interrupt the event. SVT is quite common in the general population, particularly in young people.
Supraventricular Tachycardia: A Type of Heart Arrythmia
Managing and Preventing Supraventricular Tachycardia
This is quite different from the situation described in the article quoted by the OP. In SVT, coughing stimulates the vagus nerve (parasympathetic system) to slow the heart rate. In a coronary occlusion, the hypothesis in the study cited by the OP is that coughing can increase intrathoracic pressure, squeeze the damaged heart, and increase cardiac output. That's how CPR works.
It's complicated. And now the doctor is
out.