It's untested, but this simple mod should at least prevent the save from being deleted, and hopefully also allow normal saves (basically no more permadeath, if I didn't miss something somewhere)
Important Information:
Not compatible with any mod that overrides the functions being replaced, especially if this loads after those mods.
P.S: If someone wants to expand on this mod, they can do so without asking. I personally would just use Modular Cheat Mod to prevent dying in the first place, rather than use this approach.
Note: If an error occurs while the game is trying to save, the corrupted save will still be deleted.