replace
resampleF.Update()
by
writer = itk.ImageFileWriter.New(resampleF.GetOutput().astype(itk.RGBPixel[itk.UC]))
writer.SetFileName(out_file)
writer.SetNumberOfStreamDivisions(5)
writer.Update()
it works great for me, the memory usage line no waves like nothing happened

and the total process time is really quick, 160 tiles for 30.11 seconds
