Okay, it happened to me again two more times. I do have a bunch of mods loaded so there's a chance it's because of that. Anyways, here are two logs:
2604.269 Info AppManager.cpp:324: Saving to _autosave3 (blocking).
2605.651 Info AppManagerStates.cpp:2111: Saving finished
3370.871 Info AppManager.cpp:324: Saving to _autosave1 (blocking).
3372.168 Warning WriteFileGuard.cpp:52: Writing \MIAXRVMFP1\GROUPDATA\Residential Services\Residences\Techno Gym\Techno.MSOCache\Factorio_2.0.76\saves_autosave1.zip failed; previous version (if any) should still be available
3372.191 Error ParallelScenarioSaver.cpp:158: Saving scenario failed: The mod Spell Pack (0.20.28) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event m-spell-pack::on_save()
Cannot serialise lua functions
3558.732 Info AppManagerStates.cpp:1434: Deleting active scenario.
Second time:
4480.069 Info AppManager.cpp:324: Saving to _autosave1 (blocking).
4481.588 Info AppManagerStates.cpp:2111: Saving finished
5344.287 Info AppManager.cpp:324: Saving to _autosave2 (blocking).
5345.681 Warning WriteFileGuard.cpp:52: Writing \MIAXRVMFP1\GROUPDATA\Residential Services\Residences\Techno Gym\Techno.MSOCache\Factorio_2.0.76\saves_autosave2.zip failed; previous version (if any) should still be available
5345.688 Error ParallelScenarioSaver.cpp:158: Saving scenario failed: The mod Spell Pack (0.20.28) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event m-spell-pack::on_save()
Cannot serialise lua functions
5382.034 Info AppManager.cpp:353: Deleting active scenario.
5386.504 Quitting: user-quit.
5389.949 Goodbye
Please ignore the file location, it's on a work server.