What should I do if my wife wants to leave but I still love her?

You can’t make someone stay who doesn’t want to be there, and trying will just break you further. I learned the hard way that once someone is mentally out the door, it’s usually for good. Start thinking about how to take care of yourself through this, because you’re the only one you can control.