well i dont know how it is in your case but from my expirience such crashes are an effect of coliding events.
in my case, for example it was two contradictory events. One said to empty the sound cashe at layout end when the other leftover event claimed to load so sounds at the layout end.
another this is if you write an event that orders Construct to do something AFTER going to other layout
When X happends ->
-Go to Layout Y
-Change animation frame of ABC to 2
so construct did as you ordered him and he changed the layouts but then he tried to do the 2nd thing you asked him and change the animation frame of an object, but the object stoped existing as you just left the layout and blam - my game kicked back to the windows desktop telling me the same error message you seen.
In your case there must be some sort of conflict betwen sswitching layouts and propably Global Vars.
the only thing you can do is check your events sheet line by line looking for conflicting events.