You need to boot a Fedora live session and mount the root filesystem, then proceed as follows:
# Sync installed packages to the latest release
sudo dnf --installroot /mnt --releasever 37 distro-sync
# Remove duplicates
sudo dnf --installroot /mnt remove --duplicates
# Rebuild RPM database
sudo rpm --root /mnt --rebuilddb
# Find corrupted and missing files
sudo rpm --root /mnt -V -a