GD is missing some libraries at compiling time, but doesn't seem to be related (it could be related if you are using the special timer events extension).
Unlike previews, on exported games you can switch scenes, this can generate unexpected behaviors with global variables, as a previous scene can modify it from the default value you used on previews. If the timer events don't use global variables at all it could be a bug indeed
If your game is almost finished maybe you don't want to do it... but if you can't fix it you can send me the project in a private message, so I can debug it (I can, at least, confirm if it's a bug)
Thanks for the answer. I fixed it by using the extension 'Timer events' instead of the common timer actions. However, on the game scene, I want it to wait for 5 seconds before playing the music, but it only plays when I press the close button of the window. If I hold on to the close button, it will play the whole background music of the game. If I let got, it'll stop.
I can't send my project for it exceeds the maximum allowed size.
Upload the compiled game (maybe in a zip) to a file storage server (Google Drive, Microsoft OneDrive, Mega, etc.) and pass me te link (in a PM if the game is private).