[FX] Make stack trace testing less strict (#58088)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/58088
Test Plan: Imported from OSS
Reviewed By: ansley
Differential Revision: D28365398
Pulled By: jamesr66a
fbshipit-source-id: 4d5d173721b4a917893a6f1202e3980aa6e85fcc