How do I fix directx12 crash error?

So basically, around half a year ago, i had this problem where i can’t do anything in the editor. I can only just sit there and do nothing. When i try to do something, it crashes with this crash log:

LoginId:e9e72dd94a647db65be32586d2372fa3
EpicAccountId:a0959a15d76e44cc986fff9d305a55b3

Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000018

nvwgf2umx
nvwgf2umx
nvwgf2umx
nvwgf2umx
nvwgf2umx
D3D12
D3D12
dxgi
dxgi
dxgi
dxgi
dxgi
dxgi
UE4Editor_D3D12RHI
UE4Editor_D3D12RHI
UE4Editor_D3D12RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_RHI
UE4Editor_Core
UE4Editor_Core
UE4Editor_RenderCore
UE4Editor_Core
UE4Editor_Core
kernel32
ntdll

I have already put in -dx12 in the command line in unreal engine properties. And have updated my drivers endless times. My PC is high-end. And i really wanna fix this problem.