Several years ago I came across the quote below, attributed to various sources. This is the oldest reference I found, from a 1986 book titled
Solomon's Children - Exploding the Myths of Divorce. I bought it to confirm and found it on page 195.
An interesting observation by one participant, As the saying goes, "I'd rather come from a broken home than live in one." Ponder that. Taking action, as appropriate, will enable your lives or at least a part of your lives to be spent be in a calm, stable environment - your home, wherever that may be - away from the blaming, emotional distortions, pressuring demands and manipulations, unpredictable ever-looming rages and outright chaos.
In short, you can choose to make the best of a lousy situation, whether you stay with demonstrated improvement, "stay for now" pending improvement or whether you go. The reasonable best.
Your decisions of course will be affected by your spouse's actions and behaviors. But it's always up to you to decide what boundaries you will set in your life, what you will do or not do, etc.
I would add this perspective too... Many think they can't "leave" their children but they are already leaving their children to work almost daily, go shopping, etc. Yes, there is a risk a family court could decide we get less time with our children but at least part of the children's lives would be in a stable, reasonably normal home. Ponder whether that is a better example for the kids than living only in a dysfunctional home.
And if you have the children in counseling then you'll have a professional on the side of "best for the kids", if not also on your side.