refactor(qc): extract invalid argument type error factory (#5740)
Extract the repetitive `ValidationError::invalid_argument_type`
construction code and mark it as `#[inline(never)]` to save some extra
bytes in the compiled binary since it's an error path and therefore not
performance critical.