if only I didn't do certain things just a few weeks ago we would still be a family.
Doubtful. If it wasnt that specific event, it would have been something else.
Pick yourself up and continue to work on correcting your issues. The fall of your marriage was not 100% your fault. Fix your 50%. You cant control or clean up her 50%...only she can.