Don't know what I can do about that. I don't get that error when I test it. Did the game work in previous builds? Are other games you are playing getting this error? google tells this kind of error is just limited to gamemaker.
I compiled this game on win 11 so i dont know whats going on with that.
Im going to guess it's becuase I'm loading all the sprites at startup now. Before there was lag between sprite switching. But now sprites can change around instantly. it does require a lot of loading(and memory) starting it up in return.
Would you be alright with a version without this loading instead? It will be slower.