I am sorry you had to go through that, it must have been a nightmare. I was very unhappily married for twenty eight years, so I feel for you, I know the toll it takes on you both mentally and emotionally.
I eventually realized that no God worth worshipping would expect me to live like that, and any religion that would expect it isn't worth belonging to. The fact that they were so wrong about forcing people to stay in bad marriages helped me see it wasn't "the truth" at all. I left him and the Jehovah's Witnesses and didn't look back. I've been very happily married to the love of my life for seventeen years now.
you dont have to be lonely, you really dont.