HI and welcome to HCM. I understood your concern.
Well coffee may lead to increased heart beat, so calle dtachycardia but it should not cause palpitations or arritmias.
They usually aren't serious or harmful, though, and often go away on their own. Most of the time, they're related to stress and anxiety or to consumption of stimulants such as caffeine, nicotine, or alcohol. Anxiety is a feeling of apprehension, fear, or worry. In rare cases, palpitations can be a sign of a more serious heart condition. immediate medical attention is required if along with palpitations, there is experience
shortness of breath,
dizziness,
chest pain, or fainting.
Lifestyle changes, including
stress management and the avoidance of common triggers, can help prevent them.
It would be good to do some tests;
stress test like treadmill test or stress echo which would make picture Crystal clear. Echo is also beneficial to see if heart contractility is fine.
You should also have a healthy lifestyle like avoiding fatty, oily and high calorie diet. Have low salt diet and monitor blood pressure regularly thrice a day for one week then once or twice a week. If bp is persistently more than 140/90 mmhg, then you should be on medicines for it.
Lots of green leafy vegetables, fruits, fish once or twice a week, avoid meat. Avoid smoking and alcohol if any. There shouldn't abdominal fat deposition or obesity. You need to take care of anxiety, use
relaxation techniques like deep breathing, yoga,
meditation etc.
Get your sugars tested once if not tested earlier..
Get back if you have any doubts. Regard
Wish you good health. Regards