VMware Cloud Director 10.5.1.1
This issue will occur if the VM is linked to a compute policy which is not associated to the OrgVDC where the VM resides.
To resolve this issue, please open a Support Request with VMware Technical Support and reference this KB article 399284.
This KB is applicable to already deployed VMs which encounter the error during an edit attempt.
If you experience this error during a new deployment attempt from a vApp template, then refer to the following KB as it's more applicable: