System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Just realized, that I can't debug WPF in VS 2019. More digging revealed, that it is .NET Core thing only. I hope it is possible to work around.