When you’re at the point of when you are broken in the debugger with the stacktrace you showed in the screenshot, can you press “Debug → Save Dump As…” and send me the saved file via PM?
After investingation it was because of a particular script with no special code in it. I duplicated its code and called the new script it ‘OldNameV2’, and it does not crash anymore. Maybe some kind of low-level script id problem, I don’t really know. The fact that the crash was only in UWP build make this even more strange (and scary).
Indeed. I have no idea why saving the dump failed. If this (or any other crash) happens in the future, you can switch to mixed mode debugger in the project properties - that should give a more complete callstack that would perhaps hint to what was going wrong.