Protein (and carbs) after a ride will help you recover but it doesn't prevent overuse.
Your muscles are just plain tired because you ramped up the riding faster than you can handle. Nothing wrong with that, we all do it sometimes. But the fix is to take some rest periodically. How much you need depends on your fitness. As you get fitter you'll need less.