Swap over to IT itself, and get a job that requires no actual programming. Go get the Cisco certs so you can babysit routers all day and not do much else. You could probably also find one of those jobs where you can remote in and stay home all day and chill and not ever deal with office drama.
What parts about it do you like? It could be possible to find a job that puts more focus on that.
Maybe a change in company? Culture, tech stack, product etc all affect job satisfaction. It sounds like you're in a rough spot having such investment in these skills but not being happy, it'd be a shame to throw that away without trying some sort of smaller change first.
You also don't need to code as a front-end developer, UX are considered front-end. I see more people use JS into Velocity JS nowadays, but it's a bit vague, what do you do as a front-end developer?