Because Devuan Daedalus (5.0) is also based on Debian 12, I am experiencing this issue after upgrading to kernel 6.1.0-18-amd64.
Since NVIDIA is aware of this bug, one can remove this update until a bugfix is applied:
apt purge linux-image-6.1.0-18-amd64 linux-headers-6.1.0-18-amd64
apt upgrade
apt autoremove
and stay with 6.1.0-17-amd64.
Current driver version is 525.147.05. This driver builds correctly with 6.1.0-17-amd64 kernel.