Solved by ptrblck in post #2 
              
              
                This usually happens when multiple processes try to write to a single file. 
However, this should be prevented with the if condition if rank == 0:. 
Did you remove it or changed the save logic somehow?