Am having a similar problem that may be related.
==> dkms install --no-depmod nvidia/510.47.03 -k 5.16.8-artix1-2
Error! Bad return status for module build on kernel: 5.16.8-artix1-2 (x86_64)
Consult /var/lib/dkms/nvidia/510.47.03/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/510.47.03 -k 5.16.8-artix1-2' exited 10
/var/lib/dkms/nvidia/510.47.03/build
doesn't exist but
/var/lib/dkms/nvidia/510.47.03/source
does.