HighResShot crashes after packaging

Hello, I encountered a problem while using HighResShot. When using the quick start mode or packaging mode, using the console command HighResShot, if the parameter representing MaskEnabled is 1, the engine will crash. This problem occurred in UE5.0.3, UE5.1.1, and UE4.26, and also on the other laptop I am holding. Additionally, I am using Windows 10 and my graphics card is NVIDIA GeForce RTX 3070 Ti, The graphics card driver is 535.98 (I’m not sure if this information is useful). For example, in fast start mode, when I execute (HighResShot 500x500 50 50 120 500 0 0 1), everything is normal, but when I execute (HighResShot 500x500 50 50 120 500 1 0 1), it crashes and generates the following logs:

Fatal error: [File: D: build ++UE5 Sync Engine Source Runtime RenderCore Private RenderingThread. cpp] [Line: 953]Rendering thread exception:
Assertion failed: Inputs. Material | | Inputs. MaskMaterial | | Inputs. CaptureRegionMaterial [File: D: build ++UE5 Sync Engine Source Runtime Renderer Private PostProcess PostProcessMaterial. cpp] [Line: 744]
0x00007ff6d3a7ac8f TestDemo.exe! AddHighResolutionScreenshotMaskPass() []
0x00007ff6d3a0622f TestDemo.exe! AddPostProcessingPasses() []
0x00007ff6d32adad5 TestDemo.exe! FDeferredShadingSceneRender:: Render() []
0x00007ff6d3d3e7aa TestDemo.exe! FSceneRender:: RenderThreadEnd() []
0x00007ff6d3d11d7a TestDemo.exe< Lambda_ 11499aae5c016fa4cdeb77c1659e983a>:: operator() []
0x00007ff6d3d2e40e TestDemo.exe! TBaseStaticDelegateInstance<void__ Cdecl (wchar_t const * __ptr64, IConsoleObject * ptr64), FDefaultDelegateUserPolicy, unsigned int& Ptr64>:: ExecuteIfSafe() []
0x00007ff6d18831b4 TestDemo.exe! FNamedTaskThread:: ProcessTasksNamedThread() []
0x00007ff6d18836ce TestDemo.exe! FNamedTaskThread:: ProcessTasksUntilQuit() []
0x00007ff6d504a4b5 TestDemo.exe! RenderingThreadMain() []
0x00007ff6d504d959 TestDemo.exe! FRenderingThread:: Run() []
0x00007ff6d1f0a5e2 TestDemo.exe! FRunnableThreadWin:: Run() []
0x00007ff6d1f023e0 TestDemo.exe! FRunnableThreadWin:: GuardedRun() []
0x00007ffcc9287604 KERNEL32.DLL! Unknown Function
0x00007ffcc95026a1 ntdll.dll! Unknown Function

The reproduction steps are:

  1. Create a new blank game project;
  2. Package or quickly start the project;
  3. Press~to call out the console;
  4. First execute HighResShot 500x500 50 120 500 0 1, and the screenshot can be taken normally at this time;
  5. Execute HighResShot 500x500 50 50 120 500 1 0 1 again, and the program will crash and generate the above logs.

I am also getting this issue, Did you ever find a fix?