Do you have acces to any employment assistant programs? Many company’s offer such services including counseling to help workers cope. It may be a good idea to research options outside of the company or file a grievance to HR in regards to how your supervisor has treated you. I was recently terminated from my job as a mental health counselor for basicallly the exact same reasons you have disclosed.
Good luck & advocate for yourself