Looks like I found a solution. I was using Steam version of the game when I had that error. This time I tried this mod on GOG version and saving works without problem.