The best solution is to use yt-dlp.exe and configure a updater that checks and update yt-dlp.exe to latest version. Make you updater more advance and easy to use. Check out this repo, how it uses yt-dlp.exe and a updater --> https://github.com/ukr-projects/yt-downloader-gui. It has been one month I downloaded 100 of videos/shorts and I did not had a single problem while downloading the video. If any type of issue arises, the developer is very fast to respond and solves your error.