Try booting into rescue mode, then run:
-
systemctl start NetworkManager to make sure the network is up.
dnf remove duplicates
dnf distro-sync
Then try rebooting again.
If you can’t even get into rescue mode, or dnf is broken, you might be a bit stuck…