Upgrade from 40 to 41 failed, how to recover?

These threads

discuss the option that upgrades have failed due to dnf5 being used for the upgrade.
Maybe try to remove dnf5 and libdnf5, so your system uses the old dnf for the upgrade? If that does not work I hope someone else can chime in…