Does the problem happen only when you push that block by hand? Is the motor stable normally until it is pushed out of position?
This looks like it is going to be a combination of two things: A misadjusted PID loop and too high of a gain setting on the PID loop. What is your encoder line count?