Observation of magnetic field sweep direction dependent dynamic nuclear polarization under periodic optical electron spin pumping