For Fedora 40, `nvidia-smi` does not work even after re-installing multiple times

Your card isn’t supported by the 595 drivers - see this topic for instructions on how to move back to the 580 drivers.