My advice would be to enable iOS screen time settings and set YouTube to a small limit.
Once the limit is reached it’ll nag you every 15 minutes.
If you’re absolutely incapable of controlling yourself you could set up a second account to act as a parent which you’ll need to seek approval from to extend or rather lock you out completely.