Unreal 5 should be run on an ssd. You can try running it in direct x 11 mode and see if it is more stable.
You can edit
DefaultEngine.ini in the config folder of your game folder
changing the top parts of the file where you have dx12 settings to these should switch the project to dx 11
changes start at
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
[/Script/WindowsTargetPlatform.WindowsTargetSettings]
DefaultGraphicsRHI=DefaultGraphicsRHI_DX11
-D3D12TargetedShaderFormats=PCD3D_SM5
+D3D12TargetedShaderFormats=PCD3D_SM6
-D3D11TargetedShaderFormats=PCD3D_SM5
+D3D11TargetedShaderFormats=PCD3D_SM5
--- rest of file as it was