Good that you recognize you are past what you can handle at work.
I know the anxiety you are feeling is super intense and I also know from other posts that you have been working on various patterns of avoidance that you very understandably struggle with.
So while I think it's good you are leaving work, I also encourage you also to not completely isolate and avoid these feelings - doing so will likely make it worse over the long run. I know, so easy to say, so hard to do - at least it's really hard for me to do.
Part of healing means letting yourself feel some anxiety and experiencing that things are still safe.
Something that I do when feeling overwhelmed is remind myself over and over that "something in my present is reminding me of the past, and it's over now." I also try to view my anxiety as like trying to endure the flu. I don't need to act in the feelings, but good self care can help it pass sooner.
And if none of this advice fits where you are at today, then please disregard! I hope you start feeling better soon. :hug: