Nvidia GeForce 940MX stopping Fedora-sway from booting

I was trying to install the drivers for my GeForce 940MX using the instructions on RPM fusion. I waited for all processes to be finished and rebooted. When I tried to boot the computer, I was greeted with a black screen instead of the login screen. I contacted support and they told me to make a post here. I am using Fedora 40 with Sway WM

hi, have u found any solution?
i have the exact problem