The modding community has unofficially patched Capcom’s DX12 implementation. by praydog fixes the memory leak and D3D device lost errors.
How to Fix Resident Evil 2 "Renderdevicedx12.cpp" Fatal D3D Error Renderdevicedx12.cpp Fatal D3d Error Resident Evil 2
If you are using an NVIDIA card with a "Factory Overclock" (often denoted by "OC" in the card name), try using the "Debug Mode" in the NVIDIA Control Panel to force it to run at reference clock speeds. Renderdevicedx12.cpp Fatal D3d Error Resident Evil 2