This particular .capx is impossible to resolve. When 'Sprite' is destroyed at the end of a layout, if the object it creates is then also destroyed because it's the end of the layout, then you get an infinite loop (Sprite2 is destroyed, which creates a Sprite which is destroyed, which creates a Sprite2 which is destroyed...)
Therefore objects created when the layout is ending must not be destroyed.
Workaround: use a global variable or flag to disable object creation when changing layout.
Closing as won't fix.