[Fix](Exception) Fix potential use-after-free because Exception::to_string is not thread safe
#59558
Loading
Exception::to_string is not thread safe
#59558