Bismillah
Thank you for your question. Just keep trying and don't lose hope in the day in which you will overcome these relapses. Some sins are sticky. They may be habitual or you may not have truly realised the damage that they are causing. If you keep trying you will succeed eventually. Learn to disparage your sins, to see them as stemming from ignorance and understand that their pleasure stops you from having a healthy soul and fulfilling your potential as a human. Sins are like poison that take time to get rid of, and every new sin is a new dose and more time lost.
May you always be successful