'Embedded PSC' stage with the below error:'vCenter should be using an embedded Platform Services Controller'

SDDC Manager 5.x
VMware vCenter Server 8.x
hostname
sample output: vcsa02.example.com/usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost
sample output:
VCSA02.example.com
vcf user. Run su to login as root.psql -h localhost -U postgres -d platform -c "select * from vcenter;"sample output
id | vm_hostname | status --------------------------------------+---------------------+-------- 2730####-####-####-########d780 | vcsa02.example.com | ACTIVE (1 row)
For PNID and hostname mismatch on vCenter caused due to case difference, updating the PNID on vCenter Server using VAMI will fail with error 'Adding new CN entries failed'.
Follow the steps below to resolve the issue:
https://<VCSA_FQDN>:5480) as root.Networking -> Network Settings -> Edit.hostname with a placeholder. Example: localhost