Do not use `PRId64` in torch/csrc (#44767)
Summary:
Instead use `fmt::format()` or `%lld` and cast argument to `(long long)`
Fix typos and add helper `PyErr_SetString()` method in torch/csrc/Exceptions.h
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44767
Reviewed By: ezyang
Differential Revision: D23723671
Pulled By: malfet
fbshipit-source-id: c0101aed222184aa436b1e8768480d1531dff232