Stepper motor losing its position

Does the motor have a part number? Have you measured the winding resistance? bipolar
steppers come in two categories, low-impedance designed for constant-current drive
and high-resistance designed for fixed-voltage drive.