What does it say if you try to install these packages specifically?
sudo rpm -i rpms/dnf-*.rpm
sudo rpm -i rpms/python3-dnf-*.rpm
This issue might be even more serious than I assumed initially.
If you do not have much progress, then it’s probably better to save your time and just reinstall the system.