[Gloo][BE] Print stacktrace on collectFullMesh (#98810)
Catch error and torch_check it so full C++ stacktrace is printed for
better debug
Differential Revision: [D44860626](https://our.internmc.facebook.com/intern/diff/D44860626/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/98810
Approved by: https://github.com/wanchaol