This phenomenon is called 'palpitation'.
From the description, it seems to be related to stress/anxiety
Take some deep breaths when you are feeling stress/tensed. May be relax with eyes closed for few minutes. Yoga
can be very helpful as well. I don't feel medicines are needed at the moment.