It's not permanent. At least it wasn't for me.
Ripping youtube or ytm will cause them to ratelimit your ip and/or account (media not available error).
For me, access was restored after 48h.
It was really inconvenient, so I found other ways. A mix of buying whats available on bandcamp, and ripping qobuz using a trial account (which btw is so much faster, ytm was taking days to rip just a couple artists).
I use Symfonium with Jellyfin for music now, if you tag everything with Picard, the "smart" playlist capabilities are competent.
Still pop into ytm to discover new stuff, tho.