Current state: Resources attached to the NSXPGs on the host, manually migrate and then try again. Next Step: Manually migrate these resources then retry the NSXCLI command.

To resolve this issue, the local DVS database must be re-initialized and the host rebooted to clear the stale runtime states.
Prepare the Host:
vmk0) is migrated to a Standard Virtual Switch (vSS).Disconnect from vCenter:
Reset DVS Database:
net-dvs -i to initialize and resync the local DVS database.If the above steps doesn't resolve the issue then perform the below steps:
Reboot the Host:
Remove NSX VIBs:
nsxcli -c del nsx command to delete the VIBs.Verify Removal:
esxcli software vib list | grep nsx that no NSX-related VIBs remain:/var/log/nsxcli.log for specific stale UUIDs that may require manual object deletion.