@Timtrack
That's the thing, I really didn't change much between when things were fine and the sudden glitches. I'm now doing a playthrough to iron things out, making adjustments to enemies, adding a dialogue here and there, nothing major. No new scripts added (except your turn count addon).
The lighting issue happened some time ago, but I thought it was because I used an old save, so I started this playthrough and when I reached that point, it still wasn't working. It's an event which shows a picture that has a light circle around the player and the rest is darker, the picture moving with the player. In the later maps the picture doesn't move with the player, and this also happened when I transferred the player from there to the earlier map. I changed the picture number in the later maps (in the earlier ones it was show picture 1, in the later changed to show picture 2, everything else being the same) and that solved it, but I'm baffled as to why it was a problem (picture 1 always got erased when leaving the dark map).
The save file was a normal save I made, but later it wasn't visible in the loading/saving screen, but was in the Saves directory. When I tried deleting it from the Saves, it said it can't be deleted because it's not there any more. I ended up copying everything except Saves somewhere else and worked on from there.
The formula was in the note window, through Hime's Formula Effects script, and it was supposed to put the actor's ID in a variable. This worked just fine before (and does in a previous backup), but suddenly it can't be evaluated.
About the halfway appear enemies, I thought, too, that it was a script problem (NeonBlack's Victory screen, which has given me some grief before). I tried Yanfly's Victory Aftermath and the same thing happened; however, I did it from an old save, so that might be it (I was frustrated and wasn't thinking straight). I should try from a new one. This issue did not happen always, though, I had a run of 15 battles ending correctly and the 16th got stuck when the enemies appeared. And there's another battle with halfway enemies, which didn't have this issue at all (albeit that one wasn't tested so many times).
@Ludovinsky
That's really good general advice. I mostly do what you suggest.
I do have tons of backups, but it's hard to say which one is the last one without these issues. I was making many small adjustments to many events during this last playthrough and I'm not sure if trying to find all of them wouldn't be more time consuming than just copying everything.
As I said above, there weren't any major changes done to the project. When the problem is with an event, I do check whether the associated switches and variables are what they should be (like with the light event, which should update player's position through variables and move the picture accordingly - the variables were getting updated, but the picture wasn't moving).
I think I'll take a couple of days to cool off and then try again that battle issue with Yanfly's script and a fresh save. But if new weird crashes appear, it's good to know that putting it all in a new project might help. Making this game has been a bright spot in this effed up world and I don't want to lose that.