I've got benign arrhythmia (extra beats) and palpitations. My cardiologist has limited me to two cups of coffee a day and to lose weight. I've only "felt" palpitations a few times since lowering my caffeine intake and that was always after a high caffeine day. I've also lost weight though I've had this for years and used to weigh much less. I've always been a huge coffee drinker, though.
Listen to your doc as YMMV as to causes and treatments.
__________________
“Train hard until your legs are tanned, then keep going until the shape arrives.” -Jolanda Neff