>>649244090A heart rate of more than 100 beats per minute (BPM) in adults is called tachycardia. What's too fast for you may depend on your age and physical condition.
If you drink a lot of coffee, drink alcohole, smoke, are anxious, electrolyte imbalance etc etc you might have a reason for high HR. There are ofcourse a billion other reasons.
Modafinil is NOT recommended if you have tachycardia. I don't know how you feel after taking a pill, but just know it might fuck your heart up. If you feel your heart POUNDING through your chest wall, go ask a doctor. They have 100% patient autonomy. They can't talk shit about your concens, so tell him you are taking modafinil, and you want him to check your heart and blood etc.