I was using my laptop just fine until I rebooted my device and saw an error message while booting.
Saying (failed to allocate NvKmsKapiDevice Failed to register device)
I think it's related to NVIDIA drivers. I tried to install drivers through recovery mode, but again got an error message. I think the error I am getting while installing the driver is perhaps because I am not connected to the internet, because I do not know how to connect to wifi in recovery mode.
I have an Asus ROG Strix g513 with Nvidia GeForce GTX 1650 graphics card. Ubuntu version - 20.04
Recommended driver - Nvidia driver 525 open.
Error while booting:
Error while installing drivers in recovery mode:
I am dual booting with Windows 11, and I can boot to the Windows without any issues.

