This issue occurs when the group gets created, Policy does not have the VM details. creating it the group without checking for valid Virtual Machine ids. While creating on the MP, the validation fails, as MP has the list of the valid Virtual Machine ids.
Resolution
Currently, there is no resolution.
Workaround:
To resolve this issue from th API
Update the group by explicitly removing the invalid VM/VIF id from the group.