From the error message on the validation page, note the constraint name and the required spec. From the example error message below, we can infer the constraint name to be constraints/iam.disableServiceAccountKeyCreation and the required policy spec to be {"rules":[{"enforce": false}]}
Create a yaml (say its located at /tmp/policy.yaml) file with the below configuration: