It’s a learning experience. For me what I found helped me break the cycle was joining a recovery group, and getting counselling from a therapist with experience counselling in sex addiction recovery. I kept spinning my wheels until I got that support from people who knew the struggle and had experience on the path.
Neal posted some links here:
Don’t give up, don’t run away