panic attacks from weed

im on day 5 of sertraline and yesterday was my first time smoking weed on this medication, i usually smoked every day not that heavily or anything but for me i find it makes me sleep better and actually helped my anxiety.. yesterday i had the WORST panic attack out of the blue, like i just snapped into it. it was so weird as i’ve not had one for about 2 years. my heart rate was going crazy and i literally felt like i was going to die. does this happen to everyone else or do i just need to smoke less or develop a tolerance again? now that i’ve searched it people advise not to smoke weed while on this but i just wanted someone else’s opinion!