Reading the clamav documentation at https://docs.clamav.net/manual/Usage/Configuration.html#freshclamconf
freshclam should care of it, even when a database is corrupted, a fresh copy would be downloaded
Seems to be bumping into the cloudflare hosted site ,https://database.clamav.net/main.cvd...