This issue occurs because of dvsdata.db corruption, which can be caused by a network outage.
If an ESXi/ESX host is disconnected and removed from vCenter Server, it may still keep the vDS information in its cache. When ESXi/ESX is added to a new vDS, old vDS information cannot be removed from the GUI.