You have an incompatible kernel from mainline installed so the driver doesn’t compile. Please either switch back to the stock kernel or use the liquorix ppa to get a working, latest one.
That was added by me in some attempts to add brightness control to the system. I removed this parameter for future times.
I added the nvidia-drm.modeset=1 into kernel parameters
I installed lightdm by
sudo apt-get install lightdm
and select lightdm as the display server, instead of gdm3.
It’s working like a charm right now!
I also did some experiment on which display server to use. After the installation, if I chose gdm3 as the display server, there will just be a black screen and I can’t even enter the terminal. I suppose this is some problem related to gdm3? As gdm3 should be the default display server, I suppose.
Anyway, it’s working right now and thank you for your help!