OK well until you are able to break the cycle you are doomed to continue to repeat it. This is hard stuff. Nothing is ever as it seems and it is so counterintuitve. Go back to your detachment and be kind to your self.
First thing is to know that you are only human and all of us make mistakes.