Anxiety and stress are directly related to increase in heart rate.
There are various steps to deal with anxiety and stress
Next Steps
Visit a psychiatrist.
Take deep breathes to reduce heart rate.
Try box breathing, JPMR (these are very simple exercises that ca be learnt from YouTube)
Meditation always helps.
Health Tips
Hope you feel better . All the best.