The exit code c0000354 in your WAS event logs indicates a severe structural violation such as heap corruption or a Control Flow Guard exception.
you must configure LocalDumps via Windows Error Reporting natively in the registry. Navigate to HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps and create a new key named w3wp.exe. Inside this key, create an Expandable String Value named DumpFolder specifying your desired output directory, and a DWORD Value named DumpType set to 2 to force a full dump collection at the exact moment the OS terminates the process. Alternatively, you can run Sysinternals Process Explorer as an administrator during the live hung state. By inspecting the threads of the stuck w3wp.exe process and viewing the kernel stack, you can usually identify the exact .sys driver blocking execution. I highly recommend reviewing any recent updates to third-party security agents or ISAPI filters deployed on your Windows Server 2016 environment, and you can consult Microsoft's official documentation on Windows Error Reporting for further details on native user-mode dump collection.
Hope this answer brought you some useful information.
VP