I think the problem is that the moving atom has no velocity, or a missing velocity, so when pymatgen tries to write the POSCAR, it sees all the velocities are zeros and writes them, then it gets to the moving atom, sees it has no velocity, expects a velocity, and fails.
I think the problem is that the moving atom has no velocity, or a missing velocity, so when pymatgen tries to write the POSCAR, it sees all the velocities are zeros and writes them, then it gets to the moving atom, sees it has no velocity, expects a velocity, and fails.