Hello n welcome ....
Usually feeling of loud heartbeat called as palpitation
. Which is again a very common problem, and usually does not require any treatment. But in some cases we should get investigated. Specially its regular and happens frequently.
In your case it seems not require any treatment.
As you have cough
now as soon a a you get releif from cough, your heart beat will also be normal.
So good luck and wish you a healthy heart.