How to enable AfterMath in UnrealEngine 5.1 ?

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.