One of the best pieces of advice that I ever got was divorce is not a cure-all. All of your problems are not solved by a divorce.
And although it did save me from my ex-wife, by escaping her, I was able to let out other demons that I had kept down and had not dealt with.
And there were a number of them: depression, crossdressing and transgenderism, addictive behavior.
A playlist of songs about my mental illnesses including "The Real Me" by The Who: