Freeze and Crash immediately on running packaged game. "Cached Mesh Draw command uses loose parameters" Where should I start looking for what causes this error?

These are the two relevant lines in the logs. It occurs just after the map is loaded. I have no idea what to start looking at to find what is causing this crash. Any ideas?

[2020.07.07-01.13.10:896][  0]LogOutputDevice: Error: Ensure condition failed: SingleShaderBindings.GetParameterMapInfo().LooseParameterBuffers.Num() == 0 [File:U:/UE4/UnrealEngine/Engine/Source/Runtime/Renderer/Private/PrimitiveSceneInfo.cpp] [Line: 324]

[2020.07.07-01.13.10:896][  0]LogOutputDevice: Error: Cached Mesh Draw command uses loose parameters.  This will break dynamic instancing in performance critical pass.  Use Uniform Buffers instead.

I’ve traced it down to a memcpy which is weird.

I’m getting the frame buffer using the framegrabber class. Once I capture the frame and have a FCapturedFrameData& I am

std::memcpy(image, &LastFrame.ColorBuffer[0], width * height * bytesPerPixel);

It works fine in the editor but when pacakged it gives that error about the cached mesh draw commands. Maybe it is how the framebuffer is being retrieved in the packaged version, the frame data isn’t a solid memory block?