What kind of errors? Musical ones or basic ones like hitting the wrong notes? What are the pieces? Do they occur in the same places or just randomly? After ten years, you should have the notes well and truly in your fingers. Musical perfection in Bach is, of course, a lifetime quest, but you should have the general gist correct. What other pieces do you play, and how often do you practice?Sorry if this is more a new list of questions than an answer, but can't see what useful I could say just from the information given.
Try some Mozart, Haydn, CPE Bach or Clementi and see if the same troubles persist.
How would playing compositions of theirs help?