Music suddenly plays for no reason

Currently I have an autorun event that dictates what happens in the first part of the map. Then it is supposed to erase itself in order to stop the event repeating itself when it is finished. However, instead it starts playing one of my BGM files and the player can't move. Does anyone know how to fix this?
Please post an image of the event page so that we can look at it. Also, do you have scripts that alter events?
Is there a BGM play in your event? Are you sure it has been erased? Maybe the erase event command was inside a conditional and not running. Could you post a screenshot of your event page?
Can you show us some screenshots of the event pages.
The player can't move is a tricky one, although if you're setting a Move Route to the player anywhere in that event (or other events running at the same time, including Common Events), then that could be the culprit if it's incorrectly applied.

As far as the BGM - I bet it's because you have an Auto-Change BGM set for the map. Right-click the map in your list of maps, choose "Map Properties", and see whether you have something set for Auto-Change BGM. If so, remove the check from the box and you're good.
You have probably turned on a switch that controls a different autorun event.
And Autorun events should never be ended by Erase Event - that simply means that it stops for now, but next time you enter the map it will run again. Use a self switch and new page.

Original thread: https://forums.rpgmakerweb.com/threads/music-suddenly-plays-for-no-reason.102617/