Hello Kima,
I understand your struggle… I was enslaved by masturbation for a long, long time, feeling really bad for relapsing and my inability to quit. Even during my marriage I still committed that sin, and it wasn’t until I understood more about who Jesus REALLY is and what He did for us, that I got healed from it.
I don’t know if it was a miracle or just the fear of offending God (with my newly and more complete understanding of God) that made me quit, but I can tell you, try to know Jesus better, not as a friend or as an all loving buddy, but as God, and you will try to avoid offending Him like never before.
I would recommend you to read “Jesus and the Jewish roots of the Eucharist” by Dr. Brant Pitre, that was the book that made it “click” for me and helped me quit a lot of vices and understand Jesus in ways I didn’t before, and while you’re at it, check his youtube channel too “Catholic Productions”, he explains things very clearly and connects the Catholic faith to it’s jewish roots very well.
Hope it helps, God Bless!