Crash SkyLightImportanceSampling.cpp

I have 2 lighting scenarios. Each of them contain a SkyAtmosphere with different values. I am using Ray tracing for reflections. When I switch between the 2 scenario levels in run time I get this crash. I tried another project which uses the ultra dynamic sky blueprint instead and there is no crash. So I guess it has to do with the SkyAtmosphere. I have no problems switching between the levels in the editor. It only happens in the packaged build.

Btw: I tried to post this in the answer hub but I can’t post anything there. I get redirected to a site that detects a cross reference link attack.