Don't know your situation, or how safe it is to stay, so certainly wouldn't give advice or judge your choices given how little we know. But since you asked I will share a perspective and my experience. Just watched some people close to us split up, it's been so hard on their kids. Hard on others around them too. We hope and pray they can work it out.
we got very close to that point ourselves at one point, so I do get it. Our Marraige felt like it was over 12 years ago. We married very young, it had been 8 years of difficulties, while we struggled with poor health, financial problems, loss, miscarriages etc as we tried to adjust to each other. I felt like, I was done, that life would be easier without him. But my husband was not in favour of a split. To him it was unthinkable, his parents had been through worse and stuck it out and moreover for us theologically the Marraige covenent is sacred and permanent, so divorce is not an option which is consistant with our faith. I chose to stay for that reason. (For safety in abusive situations or for unfaithfulness certainly separation would've been considered.)
So I chose to stay, It was hard, but over time things improved imensly, my Grandmother suggested actively working on my Marraige rather that allowing myself to feel hard done by. By choosing to see the good 8n him and his habits, to pray for him more, to recognise things I needed to stop doing- that might be making things worse, to show respect and gentleness even when I didn't always feel it. Amazingly things began to improved, I really saw God's grace in the situation, my husband became more considerate and more involved in parenting, two years and a baby later I was so glad I'd stuck it out. Just celebrated our twentieth anniversary another 10 years on, and can honestly say it's been so worth it for us both and the kids. Our relationship is warm, he makes me laugh everyday, is a good father, husband and provider. I am grateful he stood his ground and didn't give up on us, I am glad I managed not to be led by my emotions at the time either. The kids have a security knowing that we are committed to Marraige permanence and that we have worked through some though times In the past and grew in commitment and love because of it.