Welcome to Health Care Magic
'Acidic stomach and heart arrhythmia' - the two are unlikely to be related.
both may be the result of drugs, anxiety
and so on.
They need investigations individually - Holter monitoring, electrolytes for heart beats / endoscopy
for acidity / ... and so on
Also, they need different treatments.
Wishing speedy recovery