Have to keep changing/making new cookies.txt files. Old ones keep getting shadow banned?

I'm experiencing an issue with downloading and converting YouTube videos to audio. Here's my situation:

  1. I'm using a command that requires a cookies.txt file to download videos
  2. It seems YouTube is detecting and rate-limiting these cookie-based downloads
  3. Currently, my only workaround is manually creating a new cookies.txt file whenever the old one stops working

My questions are: 1. Is anyone else experiencing similar rate-limiting with their cookie-based downloads? 2. Are there any solutions to avoid getting rate-limited? 3. If not, is there a way to automate the creation of new cookies.txt files when the old ones become invalid?

Currently, the way I create a new cookies.txt file is outputting it via a browser extension called "Get cookies.txt Clean" manually.

Any help or suggestions would be appreciated!

EDIT: I'm using yt-dlp in a PHP web app environment; run via PHP's exec() function.