Execute PathTracing Console command cause Fatal Error

Hello everyone,

I’m try to use console to turn on the PathTracing. In the blueprint, I press P to turn on the PathTracing.
However, after I package the project, it will show Fatal error.

How can I solve this problem.

Blueprint:

In the unreal engine 5.0:

Packaged project:

Thanks for reading this post and have a nice day.

Best,
Caden