I have never had this problem, but it is true that some robots restart when installing the operating system and if there is no battery or it is damaged the robot starts again, it has happened to me before.
Replace the battery and try it again and let us know.