vCenter Server 8.x
SDDC Manager 5.2.1
This error can occur when there are stale license entries left in the VMDirectory LDAP database used by the license service
Workaround :
1.Take the offline snapshot of the Management and workload domain vCenter.
2. Put the Host in Maintenance Mode.
3. Connect to JXplorer and remove the incorrect license usage count for ESXi hosts as displayed in the vCenter Server. Refer to the Broadcom KB - vCenter server incorrectly displays the amount of licenses in use by ESXi hosts
4. Disconnect the ESXi Host from vCenter server.
5. Assign the license directly from ESXi web client.
6. Connect the ESXi Host back to vCenter server.
7. Try assigning the license from vSphere web client to all the ESXi Hosts.