DX 12 is not supported on your system

Take a look at this

I think your Windows is still out of date.

What’s the exact version? Just hit the Windows key and type winver. I think 21H2 is the latest Win10.