I don't see the relationship here from the meds to the heart. You may be experiencing anxiety
from taking the meds, Psychological type of issue but I wouldn't say physical.
Why your heart is doing this remains to be seen. You have to have an evaluation from your cardiologist to see what's going on there.