I have been struggling with a sin for quite some time now, but have had little success in quitting. I've struggled for years and have tried many different methods to quit, but nothing has helped. It leaves me wondering why Allah SWT has not granted me a way out of it. Am I doing something wrong on my part that may block me from receiving Allah's help? I'm confused why He has not granted me the ability or means to stop this sin that I have been struggling with for so long.

Quiting sin required good deeds on other areas, like helping someone, respecting parents, offering salat on time, reading Quran, utilizing ur time, sports, and avoid that things which lead you towards sin