Excute PathTracing console command cause fatal error

Hello everyone,

I using the Excute console command to run the PathTracing in the blueprint.
I want use blueprint to control the PathTracing command input value.
It works in the unreal engine, but not in the packaged file.
How can I use PathTracking command in the shipping file?

Here is the blueprint:

Works on the UE5.0:

Not work on the packaged file:

I follow the Path Tracer setting, I change to DirectX 12, Enable Path Tracing and Enable Support Hardware Ray Tracing

Thanks for reading this post.

Best regards,
Caden