I know you checked your pc already, but what about background programs running? I had a simillar issue with music being out of timings before (though not with this script, but in general), and i noticed that active torrent were causing that, despite pc is not being loaded even to 50% of resourses.
Seamless audio transition from file to file?
RPG Maker MV SupportUse the two tracks one as a BGM (normal) and the other as a BGS (muffled). Have them both start playing at the same time, but BGM with normal volume and BGS with volume 0. When you move to the other room, reduce BGM volume to zero and BGS volume to normal.
Script is
ConfigManager['bgmVolume'] = x;
ConfigManager['bgsVolume'] = y;
Script is
ConfigManager['bgmVolume'] = x;
ConfigManager['bgsVolume'] = y;
Original thread: https://forums.rpgmakerweb.com/threads/seamless-audio-transition-from-file-to-file.165784/