Permanent “There was an unexpected error loading this library” for server content

Are you able to copy the database to another system (Linux, macOS, Windows)? If so, you can perform the repair there and copy it back.