Too large .gsc files will also cause this.
Also i wouldnt suggest including 1 gsc file into another. ( #include )
Mass including gsc files will cause this gamestate error.
so be cautious.
EDIT: Actually not sure if this concerns the "gamestate error".