Since the latest driver has a lot of issues for me (black screen when set over 120hz), I decided to downgrade it to 535xx or 550, but everytime I tried to install with dkms it has these error messages:
==> dkms install --no-depmod nvidia/535.183.01 -k 6.10.1-2-cachyos
Error! Bad return status for module build on kernel: 6.10.1-2-cachyos (x86_64)
Consult /var/lib/dkms/nvidia/535.183.01/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/535.183.01 -k 6.10.1-2-cachyos' exited 10
( 6/11) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux-cachyos -g /boot/initramfs-linux-cachyos.img
==> Using drop-in configuration file: '10-chwd.conf'
==> Starting build: '6.10.1-2-cachyos'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [microcode]
-> Running build hook: [kms]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
-> Running build hook: [plymouth]
-> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: 'qat_420xx'
-> Running build hook: [filesystems]
==> ERROR: module not found: 'nvidia'
==> ERROR: module not found: 'nvidia_modeset'
==> ERROR: module not found: 'nvidia_uvm'
==> ERROR: module not found: 'nvidia_drm'
I have no idea how to fix it, would greatly appreciate some help!