Scheme for precise correction of orbit variation caused by dipole error field of insertion device