Ray Tracing bug ONLY in Shipping

I get this Runtime error in packaged shipping game that does NOT occur when game is packaged in DebugGame or Development configuration:

Current version is 5.4.4 but I’ve had this error on previous version of unreal too.

LowLevelFatalError [File:D:\Unreal Engine\5.4.4-release\Engine\Source\Runtime\D3D12RHI\Private\D3D12Util.cpp] [Line: 991] 
RayTracingDevice->CreateStateObject(&Desc, IID_PPV_ARGS(Result.GetInitReference())) failed 
 at D:\Unreal Engine\5.4.4-release\Engine\Source\Runtime\D3D12RHI\Private\D3D12RayTracing.cpp:663 
 with error E_INVALIDARG

Any help would be greatly appreciated!