I have almost been divorced and I have also come close to divorcing my wife.
without going into details I will say that because of this me and my wife are closer than we have ever been.
Everyone deserves a second chance, if your walking away or if she is, hopefully they consider that. There is an exception to this, in my humble opinion,
If the breakup is because someone cheated there is not much hope if any.
If it isn’t the above, maybe you or her can work through this. But remember if you or her are not willing to both come to a compromise to settle your woes it will not work.
I have been to a marriage counsellor three times in our 14 years, it really really really helps for the other to see your point of view. Having an intermediary is absolutely critical if you and her are fighting over the same thing over and over again.