Game freeze when applying changes to graphics settings

The title speaks for itself. Im on DX12 with frame generation on.