Cannot change the host configuration".The certificate Common Name doesn't match the name of the host on which it's going to be installed. This can cause the host to disconnect from vCenter."This issue occurs if there is a FQDN mismatch between the certificate with the actual ESXi hostname.
Correct the ESXi hostname and re-generate the certificate by following below steps:
esxcli system hostname set -f <FQDN of the host><FQDN of the host>" with the actual host FQDN.