This is a doc only bug.
Errors ERR_INVALID_ARRAY_LENGTH and ERR_INVALID_DOMAIN_NAME have now been removed in 186857f and 564048d respectively, and we would need to update the doc/api/errors.md for the same once these two land on a release branch.
Alternatively, fix them in different PRs, with the same labels (dont-land or semver-major) as the PRs that remove these error codes.
See #22100 (comment) for more details.