Revert "Refactor stack_trace preservation for node meta preservation (#90803)"
This reverts commit 0f1302eeaed3b10ab6db493c1c33797a6ec46866.
Reverted https://github.com/pytorch/pytorch/pull/90803 on behalf of https://github.com/DanilBaibak due to Break internal build