Learn to quit working so hard prior to the rolling hills part of the ride.
I was waiting for this to come up.
As I've aged, and am still trying to occasionally ride with faster people, I've learned to spend more time drafting when possible. It makes those climbs somewhat more feasible.