Have you tried reinitializing the patches. If you send the original factory patches to the D-10 it may well fix the problem.

If you have had a series of problems with the keyboard there is a good chance that some of the patches have been corrupted in memory. And if you have never replaced the internal battery then replacing that is a good suggestion. Once the battery starts running flat then patches will fail.