To resolve this issue, retry the uninstall operations after a few minutes. Wait until the host OS version is reported by the agent as installed as part of the NSX install.
Note: The API to check the OS version of a transport node is:
GET https://<NSXMGR_IP>/api/v1/transport-nodes/<TN-ID>