Why are high or changing altitudes problematic for EVs?
The main factor with lithium battery lifetime is charging cycles. Going up hill would drain the battery faster lead to be more charging, but it would be a small effect.
That's my experience with an EV, the regen is so good I'll gain back significant charge going down a mountain.