Validate against several constraints with OR logic in Symfony
Create a custom validator and implement your own logic with existing constraint.AFAIK that's no other way to obtain what you're asking for.
There is a special constraint for that: https://symfony.com/doc/current/reference/constraints/AtLeastOneOf.html