I can tell you from my own experience, you don’t do the child a favor by sticking to a broken relationship, I wished my parents have broken up earlier instead of pretending everything is good and that’s how a normal relationship should be. It took me years and I sometimes still struggle today to draw a line and go into a conflict with my partner to figure things out instead of avoiding the conflict