The most important thing to do right now is to get control of yourself and stop doing what doesn't work. We could give you the very best solutions in the world, but if you continue doing what doesn't work........you will get nowhere fast.
I can tell you that when a woman has had enough of a man..........the last thing on earth she wants is for him to start begging, crying, pleading, promising, etc. It causes her to feel more disgust than anything else......and I'm sure you don't want her having those type of emotions for you.
When she said she was not attracted to you, that did not mean you have turned into an ugly toad. It means that she doesn't feel desire for you, like she use to feel. Smothering her with your presence, being overly attentive, texting often, putting emotional pressure on her, etc., will only make things worse. She doesn't want to be around you, so work out a child visitation with her, and leave her alone.........for now.
There is something you must conquer, and that is the fear. It will prevent you from acting like a strong, confident man, and cause you to appear weak. That is not what either of you need during this ordeal.
Think about the man you were before getting M. Find him again......or else become better.
It is not about what you feel should work in your M. It is about doing the work that gets the right results. Do what works!