Relapsed today after 10 days

I've been trying nofap for a really long time but wasn't successful. Now due to excessive porn and masturbation i thought i had Porn induced ED and finally took the courage to stop.

The first 3-4 days were okay because I was very busy and didn't have time to think about it. It is on the 5th day things started changing. I was starting to have a hard on without any porn or activity. This made me happy and motivated me to continue it. But from 6th day it became too much. I had a hard on 24/7. I couldn't focus on anything and had only porn thoughts running over. From then i started having blue balls. I had read about it in the internet so was sure it's nothing serious. From day 8th the pain was aggravating and only had porn on my phone. 9th day i started having swollen balls and pain around my abdomen region, filthy thoughts and always a hard on. I couldn't sleep in the night due to the pain. Now on the 10th day, I felt it is doing more harm than good so let it out.

The pain and thoughts has substantially reduced but feel like a failure now. I could just do it for 10 days. I need motivation to make it to 21 days atleast next. Please help a brother out.