Fix bad error message when int overflow (#48250)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/48114
Before:
```
>>> torch.empty(2 * 10 ** 20)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: empty(): argument 'size' must be tuple of ints, but found element of type int at pos 1
```
After fix:
```
>>> torch.empty(2 * 10 ** 20)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Overflow when unpacking long
```
Unclear whether we need a separate test for this case, I can add one if it's necessary...
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48250
Reviewed By: linbinyu
Differential Revision: D25105217
Pulled By: ezyang
fbshipit-source-id: a5aa7c0266945c8125210a2fd34ce4b6ba940c92