refactor: use ParseErrorsAllowlist instead of ParseErrorsWhitelist (#10830)