If it's only happening going down big hills it's ok.
My old bolloxed Prius used to over rev when the battery was needing some attention.Usally it was a bogey battery cell and the car couldn't balance the pack so it would keep charging it.That's mmany years away hopefully if you've a newish car.
Just an aside but your battery gets its cooling from the cabin,the vent is in the rear footwell under the rear seat.Make sure you're filter is clean or the battery will be overheating as it can't get cooler air through.Also no harm in running the air con when it's roasting to keep the pack as cool as possible for longevity.