There is no safeguard against a scene not correctly drawing thus causing the ImGui render to fail out when trying to render the scene collisions.
I'm using cosmic as the area since I know it happens here, but it can happen to any area where this fails.