Nvidia drivers installation error on a Proxmox 7.1 host

Hi
When I try again to install the Nvidia drivers on a Proxmox 7.1 host, I get the following errors:

ERROR: Unable to load the kernel module 'nvidia-drm.ko'.  This happens most
         frequently when this kernel module was built against the wrong or
         improperly configured kernel sources, with a version of gcc that
         differs from the one used to build the target kernel, or if another
         driver, such as nouveau, is present and prevents the NVIDIA kernel
         module from obtaining ownership of the NVIDIA device(s), or no NVIDIA
         device installed in this system is supported by this NVIDIA Linux
         graphics driver release.

         Please see the log entries 'Kernel module load error' and 'Kernel
         messages' at the end of the file '/var/log/nvidia-installer.log' for
         more information.


ERROR: The nvidia-drm kernel module failed to load. This kernel module is
         required for the proper operation of DRM-KMS. If you do not need to
         use DRM-KMS, you can try to install this driver package again with
         the '--no-drm' option.

ERROR: Installation has failed.  Please see the file
         '/var/log/nvidia-installer.log' for details.  You may find
         suggestions on fixing installation problems in the README available
         on the Linux driver download page at www.nvidia.com.

Any suggestion on how to avoid this?
Because if I use the --no-drm option, the error disappear but the file “/dev/nvidia-modeset” is not created.

Regards