Hard crash on Ventura when accessing RuntimeException.stack

I’ve got 2 reports about a hard crash using Ventura. The following code crashes:

dim result as string

for each singleStack as string in error.stack
  dim StackString as string = cleanMangledFunction(singleStack)
  if StackString <> "" then result = result + CarbonModule.EndOfLineMacintosh + StackString

return result

I’ve made a bug report with an example project at Xojo: Account Login . Unfortunately, I can’t reproduce the crash. Could the Ventura testers do some test with my project? The test project only has a button and either a dialog or a crash.

The current version of my app still uses 2021r1.