The voltage of the capacitors is typically around 350V. The voltage of the batteries must be transformed to that level. The lesser the voltage of the batteries the higher currency they must deliver, the sooner they are exhausted. Thus when choosing batteries of lesser voltage, their capacity (size) must be chosen larger. (And of course the transformer stage adapted too.)
If exchanging batteries for larger ones of same voltage, typically nothing has to be changed, but the bigger ones yield more charging cycles. (The inner resistance of the batteries though may play a role as in charging speed, up to even overstressing the transforming circuit.)