Debian 12.5 kernel 6.1.20 - Nvidia Quadro FX1800M does not start

I’m trying to get an Nvidia Quadro FX1800M card to (re)work on a DELL Inspiron M4500 laptop with the NVIDIA-Linux-x86_64-340.108_notebook.run installer but I’m encountering compilation/installation problems. First, the installer reports that the stdarg.h file is missing (fixed manually). It then reports that the kmap_types.h file is missing. But the kmap_types.h file doesn’t exist in the kernel sources and I don’t know where to find it (and if it would work). The installer is updated to 2019 and there does not appear to be any update available for Linux 6.x kernels
Can any developer solve this please? I am not able to proceed and the workstation currently freezes with a black screen and a flashing cursor at the top left (the Gnome 3 environment is not displayed. I attach the file nvidia-bug-report.log.gz to facilitate the analysis and research of the problem. Thanks in advance to anyone who wants to help me.
nvidia-bug-report.log.gz (120.9 KB)

The 340 driver is out of support for 7 years now and not compatible with any recent distribution. Please use nouveau.