Your linear encoder strip is dirty or the eye that reads it is dirty.
Are you also getting prints that "move" a bit or look like stairsteps around the edges?
Once, I also had a really dirty track that the carriage rides in/on & had to get some 3-in-1 oil in there to get those grooves/wheels cleaned.