I think everyone is different in how they react to meds.
I first had Zoloft in 2016, no issues at all. Got it again in 2020 and I got very edgy like you described, I stopped it. In my case I did okay without it.
Keep in touch with your doctor or pharmacist about this, I’d be cautious, especially if you haven’t had it before. Under 25s particularly can react badly to Zoloft I’ve heard. I don’t know if that applies to you.