Hi!
the error you are facing can be due to graphic drivers, i have solution of two common issues
Which Nvidia RTX Drivers to use with Ue5.1 - Platform & Builds / Debugging, Optimization, & Profiling - Epic Developer Community Forums (unrealengine.com)
GPU crashed or D3D device removed error - Development / Getting Started & Setup - Epic Developer Community Forums (unrealengine.com)