Text this: A Robot Error Prediction and Compensation Method Using Joint Weights Optimization Within Configuration Space