I did, and I'm not an example to follow; simply, I didn't believe I had any other choice, and over time, this prolonged non-relationship created a misery for everyone concerned.
TW: alcoholism, suicide risks, disability
Some background: I'm a migrant and autistic, my XW has serious mental health issues dating back since before we married which she self-medicated with alcohol throughout our marriage.
When our DDs were very young she told me if I left I would never seen then again. Sometimes these things can be said in anger and be resolved, or forgotten. In my case, not having a family network in the UK, knowing my XW very much relied on her mother and the force she could be to defend even her daughter's worst behaviours, I took it very seriously. I estimated a British judge would never trust young daughters to a foreign dad over a British mum, and froze my feelings and behaviours. Some moments were better than others but I prioritised being present with my daughters and countering the pain caused by their mum's alcoholism, her threats of suicide since their toddler years, her choices of house to buy followed by refusals to move, her quitting within days of finding work...
Eventually my DDs were in their teens, both diagnosed autistic, both traumatised by all this, and my career still, miraculously, precariously afloat. It was time to reconsider separation - more painful after so long, but at last they were old enough to be heard - if they spoke through autism and trauma. Then the serious trouble began. I took 5 years through cancer, covid, more suicide attempts and the death of both my XW's parents, before separation became a possibility again.
Result: 20 years of trauma for my daughters since their young years, and a far worse separation including for my XW.
It's up to you hopefully when the disruption happens. You know also your circumstances - and what moving etc would entail and how long it would take. But as a colleague told me, encouraging me: how long will it be before you start living your life? I think many mumsnetters would agree with that.