Ok, then the issue is still something modular causing the error with the cuda install.
To see if there are still cuda packages installed please run dnf list installed '*cuda*'
as well as checking the modular issue
From this thread I find that running the command
sudo dnf module disable nvidia-driver
will probably solve the issue. That also links to the instructions for installing cuda from rpmfusion.