When the speedometer is erratic and code is thrown, the speed sensor in the rear axle is probably the culprit. Very inexpensive and easy to change. Good luck!