Sounds like a loose coupling/pulley to me. If the rotary encoder is connected to the motor shaft (as most are) the mechanical connection between the motor and the ballscrew should be suspect.
Another possibility is that the rotary encoder is loose on the shaft. The rotating disk is usually held in place with very tiny setscrews.
Take a close look at the connection between the motor shaft and ballscrew.