How to enable AfterMath in UnrealEngine 5.1 ?

I am using UE5.1 and my operating system is Windows11. I wanna enable AfterMath for GPU crash debugging. But I failed to do it even though I search a lot by google. I notice that the AfterMath Log:
[Aftermath] Aftermath enabled but failed to initialize (bad0000a).
So I know it is because the debug layer is opened.
And I search a lot, I found that in windows11, the debug layer can only be used when the “Graphics Tools” optional feature of system is enabled. I disable it but I still failed to initialize the AfterMath…

I have the same issue in UE4 where I figured out that aftermath may be not compatible with

  1. -D3DDebug launch command param.
  2. Renderdoc Plugin (if initialized).
  3. D3DDebugLayer if without Graphics Tools on your device.

Not really sure if the issue is the same in 5.1. Hope this would help someone.