I know what you are going through.
But the question arises what you are going to do now? You need to support yourself mentally and financially.
This doesn’t mean and I am suggesting you to come back to tech. But, now that you have hit a problem, which not only you, but someone else might go through, you should do something about it.
Life is all about breaking the barriers in your and people’s mind. If you think that mistreatment and bullying is that barrier, do something to break that barrier. Make it a sideproject, start a community and do whatever you think it takes to achieve that goal. If you find mental peace or get some not tech job somewhere else, that will be a temporary solution.
This is it. Life is yours. Make it the way you want it.
Just another ordinary friend.