VMWare Ubuntu 22.04, VGPU 510.85.02 - CUDA install fails with Driver/library version mismatch

Do whatever you need to do to restore your vGPU setup to proper operation - so that the nvidia-smi output does not show an error.

Then install CUDA in your VM without installing any (new) driver as I suggested to you here.