Complete Error message in the failed task:
Cause: I/O error on GET request for "https://<NSX_FQDN>/api/v1/node/users": PKIXpath validation failed: java.security.cert.CertPathValidatorException: validity check failed;nested exception is javax.net.ssl.SSLHandshakeException: PKIX path validation failed:java.security.cert.CertPathValidatorException: validity check failed
VMware Cloud Foundation 4.x
VMware Cloud Foundation 5.x
The issue occurs when the NSX Manager certificate has expired.
SDDC Manager relies on certificate validation for secure API communication, and an expired certificate prevents remediation tasks from completing successfully.
Validate the certificate of the NSX manager either from the NSX UI or Workload Domain> Certificates.
If them certificates are expired replace them with VC signed certificates using the below KB: Scripted process to Replace Expired or Self-signed VMware NSX-T Manager Certificates with VMCA-Signed Certificates
Once the certificates are replaced re-run the remediation task with the same(current/working) password to fix the disconnect status.
In case you are using custom certificates replace with VMCA-Signed Certificates then change them from SDDC manager.
Other possible issues where NSX can be disconnected:
 NSX-T Manager user accounts disconnected in SDDC Manager password management