Plex keeps crashing my PC

You are running PMS from within a remote desktop session, right?

Try Windows Remote Desktop breaks HW Transcoding (QSV) - Here's the fix!

Open the registry editor of the server machine.
go to the branch
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\PerSessionTempDir
If it is set to 1, change it to 0

Reboot may be necessary.

Here is a reference what this is doing Configure Temporary Folders for an RD Session Host Server | Microsoft Docs


Alternatively, you can also change the Group Policy or edit the RDP session properties:

To configure temporary folders on the RD Session Host server

  1. On the RD Session Host server, open Remote Desktop Session Host Configuration. To open Remote Desktop Session Host Configuration, click Start , point to Administrative Tools , point to Remote Desktop Services , and then click Remote Desktop Session Host Configuration .
  2. In the Edit settings area, under General , double-click either Delete temporary folders on exit or Use temporary folders per session .
  3. On the General tab of the Properties dialog box, select or clear the Delete temporary folders on exit check box and the Use temporary folders per session check box based on what is appropriate for your environment, and then click OK .
    If you clear the Use temporary folders per session check box, a user’s temporary files for all sessions on the RD Session Host server are stored in a common Temp folder under the user’s profile folder on the RD Session Host server.

You can also configure temporary folders on the RD Session Host server by using the Do not delete temp folder upon exit and the Do not use temporary folders per session Group Policy settings. These Group Policy settings are located in Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Temporary folders and can be configured by using either the Local Group Policy Editor or the Group Policy Management Console (GPMC). Note that the Group Policy setting will take precedence over the setting configured in Remote Desktop Session Host Configuration.