vSphere ESXi 7.x
vSphere ESXi 8.x
vSphere vCenter Server 7.x
vSphere vCenter Server 8.x
If the synchronization is lost between ESXi hosts and vCenter then there is the possibility of mismatched information between the list of ports on vCenter and the list on the hosts leading to out of sync condition for some of those ports.
The warning message is expected behavior if the DVS is marked as out of sync. It will clear automatically once the out of sync issue is resolved.
For the warning message to clear, the out of sync issue on the DVS will need to be resolved.
If the suggested resolution steps do not resolve the out of sync issue, please create a support case . Do include the error screenshot and the listed port/s along with vCenter and ESXi logs.