https://bugs.winehq.org/show_bug.cgi?id=48256
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 66000 --> https://bugs.winehq.org/attachment.cgi?id=66000 patch, enough to avoid pwsh.exe from crashing
Attached patch fixes the crash for me. Hopefully correct (enough)