Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
I got a similar error message, are you calling a common event to hide it? if so put a wait command in just before the line of scripting, it has a split second delay but it works