Open Event Viewer and see if webview crashes (Windows Logs -> Application)
I've found webview crashing and here are details.
-----------------------------------------------------------------------------------------------------------
Faulting application name: msedgewebview2.exe, version: 119.0.2151.58, time stamp: 0x654c3a4f
Faulting module name: ntdll.dll, version: 10.0.22621.2506, time stamp: 0xbced4b82
Exception code: 0xc0000409
Fault offset: 0x00000000000a3a66
Faulting process id: 0x0x5820
Faulting application start time: 0x0x1DA1885FE34D754
Faulting application path: C:\Program Files (x86)\Microsoft\EdgeWebView\Application\119.0.2151.58\msedgewebview2.exe
Faulting module path: C:\WINDOWS\SYSTEM32\ntdll.dll
Report Id: 20d45eec-1be6-40f3-aabd-77c988d5a93c
Faulting package full name:
Faulting package-relative application ID:
-------------------------------------------------------------------------------------------------------------------------
This happens when Hardware-enforced Stack Protection is enabled on a machine with latest generation CPU that supports this feature.
As a workaround I turned this off for webview and it works fine now.
- Go to Windows Security -> App & browser control -> Exploit protection settings -> Program settings -> Add program to customize and add msedgewebview2.exe
- Then scroll down below until you find Hardware-enforced Stack Protection.
- Check Override system settings (Make sure it's turned off)
You'll need to restart Windows.