Use at your own risk, had ai create this universal script based off the original. If you have success, please share, if you have issues, please also share. https://github.com/itmunky/ScriptStash/tree/main/Universal-Arr
I recently encountered the same issue with a malformed database disk image in Radarr. After some trial and error, I built upon a script originally posted by rhinot (Special thanks to rhinot for the original script) that is able to repair the Radarr DB. I've shared this script in my GitHub repository, and I hope it can help others facing the same problem.
https://github.com/itmunky/ScriptStash/tree/main/Radarr#description
Script: https://github.com/itmunky/ScriptStash/blob/main/Radarr/improved_radarr_recovery.sh