I think that you could:
1) disable the PID
2) reset the encoder
3) G0 X0 (or maybe G10 X0, I would need to experiment)
4) re-enable PID.
Just set the F-error very high. The system won't be able to detect follwing error problems, but the actual machine accuracy won't be affected.