Revert "[primTorch] Use the same error message as in ATen for canonicalize_dim (#78541)"
This reverts commit c054993b538e62f9267e182090cc0a53f1d529f3.
Reverted https://github.com/pytorch/pytorch/pull/78541 on behalf of https://github.com/malfet due to as it depends on https://github.com/pytorch/pytorch/pull/78080 that caused XLA failures and is getting reverted