@denisgottardello
I haved same error. awful for my because is a laptop and i dont connect my monitor, only for gpu.
I dont found any solution at this bug whit the new version of the kernel.
So, kernel problem is linux-headers-6.1.0-18-amd64.
i dont only use nvidia for my monitor, it is for my work with gpu and simulations. AWFUL!
The only solution i found. is delete the kernel 6.1.0-18.
You shuold also delete the kernel source path. and the linux-headers in general of this version.
don’t delete manually, only with commands
Back to the kernel 6.1.0-17-amd64. this works fine. and compile the NVIDIA.run and install whitout problems.
and wait for debug.
Pd(Sorry for my english, i try improve)