Disable Windows Error Reporting on Windows Server
On Windows Server 2019/2016/2012R2, you can manage the WER service state using PowerShell. You can disable the Windows Error Reporting service:
Get-Service WerSvc | stop-service -passthru -force
Set-Service WerSvc -startuptype manual -passthru
https://woshub.com/wer-windows-error-reporting-clear-reportqueue-folder-windows/