it can work - DW and i have been at the brink a couple of times, the consequences of poor choices and a lack of consideration from both of us.
however, with complete openness and honesty, and commitment from both of us that we have followed through on, allied with regular honest discussions about how we feel, and how we're doing, we are in a good place.
i don't think we'll ever be the same as we were prior to our mistakes, but where we are is a good place for us at the moment.
that might not always be the case, but as long as we continue to make the effort, and to keep being honest with each other, whatever the long-term outcome, we can both say we've done everything we can.
it has been a lot of work - but then not much in life worth having comes easy.
DW has direct experience of being the product of parents who stayed together just for her benefit, and neither of us would do that to our DCs.
could you see you both putting the same level of commitment into your relationship? it doesn't seem that way from your op.