[AutoUpgrade]: Fixed assertion by considering number of args (#172911)
The assertion was violated because the intrinsic had too many arguments.
In that case, fall back to the default handling.
Closes https://github.com/llvm/llvm-project/issues/172817