Cannot create Sonar project via API call

Hi team,

Sometimes I cannot create a Sonar project via API.
Here is an example curl

    -H "Content-Type: application/x-www-form-urlencoded" \
    -u "${SONARCLOUD_TOKEN}:" \
    -d "organization=${ORGANIZATION}" \
    -d "project=${SONAR_PROJECT_KEY}" \
    -d "name=${SONAR_PROJECT_NAME}" -s | jq .

And here is the resp

{
  "errors": [
    {
      "msg": "An unexpected error occurred. Please try again later."
    }
  ]
} 

I found out the root cause was the conflict with the project permission template.