UE5 gpu crashed or d3d device removed

You also may look at this option.
You may try disable Tdr Watch preventing your PC crash and wait for operations ending.
Just set TdrLevel to zero and try to wait for 5-10 mins.

If it does not help you, maybe your problem relates on hard drive or ram memory, that causing pc freeze.

The settings that i’ve provided earlier works on RTX 3080 Ti. Maybe you hardware need more time to end all the operations or you have problems with your hardware =
I am sorry if it does not help you =\

TdrLevel

Specifies the initial level of recovery.

registryCopy

KeyPath   : HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\GraphicsDrivers
KeyValue  : TdrLevel
ValueType : REG_DWORD
ValueData : TdrLevelXxx (see the following table)

Where TdrLevelXxx can be one of the following values:

Value Meaning
TdrLevelOff (0) Detection disabled
TdrLevelBugcheck (1) Bug check on detected timeout; for example, no recovery.
TdrLevelRecoverVGA (2) Recover to VGA (not implemented).
TdrLevelRecover (3) Recover on timeout. This is the default value.

My windows version

Edition Windows 11 Pro
Version 22H2
OS build 22621.1413