"Building kernel modules" step fails with error while installing driver software on Proxmox

I am installing NVIDIA-Linux-x86_64-580.105.06-vgpu-kvm.run on Proxmox PVE 9.1.1 when I get the error: An error occurred while performing the step: “Building kernel modules’“. See log for details.

Thanks in advance for any help!