Nvidia driver problems

since you have lts you may want to install the nvidia-lts version and remove nvidia package.

sudo pacman -Rs nvidia

Or install the nvidia-dkms which should also work with other kernels to my understanding. I also commonly install nvidia-settings.

sudo pacman -S nvidia-dkms nvidia-settings

If nvidia-dkms doesn’t boot:

Ok follow @Stephane advice which is also mentioned in the arch wiki, the purple box with a note here:

https://wiki.archlinux.org/title/NVIDIA

Edit: hope I didn’t get things wrong with the packages, it’s been a while I have used Nvidia. nvidia is for mainline kernel and nvidia-lts for lts kernel. nvidia-dkms works for both

Edit2: essentially steps 1, 3 and 4 here Problem with nvidia-installer-dkms on hybrid graphics booting to black screen