In frivorces, one of the first activities of many men is to consider what could I have done better, or how might I have prevented this? These are good questions to ask. Introspection is good. But in true frivorces, the answer is pretty much nothing.
Often the train to divorce is rolling down the tracks, the fella senses that she is having issues with him (often for some nebulous unknowable reason); and because he is too close to the situation, he cannot see the forest through the trees. The man may try many things to improve the situation, things like more supplication, more gifts, more this or that; but nothing works.
And what are the nebulous unknowable reasons? They could be a combination of many things. They are unknowable typically because she does not want to admit to what they are, for to do so would be embarrassing. Reasons include selfishness on her part, lack of tingles generated, his lack of leading in an egalitarian relationship, society indulged cray-cray rearing its ugly head, etc. Since it is often accepted that women are morally superior, they surely cannot have any of these properties, so they don’t.
The issues remain hidden. The divorce train picks up speed, then it totally derails. Is this what happened to you? If so, understand that in the blue-pill world that you undoubtedly lived in had no solutions for you; a true Kobayashi Maru situation.