Packaged 4.24 Games Crashed When Activating Shader Complexity View Mode

I have been enabling view modes in games by adding “r.ForceDebugViewModes=1” all the time. After upgrading to 4.24, I noticed that Shader Complexity mode (F5) does not work any more. The error message I got is as shown in the screenhot.