Medical help

Yesterday i went to the doctor and he told me i had yeast infection and gave me an antibiotic. Last night 2-3 hours later after i took it my heart rate increased, i got really light headed and i started sweating. Why do you think that might have happened? My heart rate is still weird