Doubt AA and AAA battery

@Verna_1353 is correct. The only thing I would add is that any alkaline, regardless of brand, is prone to leaking if the battery is left in the equipment for very extended periods of time (as in a year or more) if the battery is completely drained of charge.

An alkaline battery is considered completely empty when the voltage is around 0.7V. If the battery is left in the equipment beyond this point and the device continues to draw current, (which is often the case in modern devices, even if the device is “Off” or not operating due to battery voltage being too low to operate properly) this is when a battery will become prone to leakage.

Also, alkaline batteries continually self-discharge over time, so even if literally zero current is drawn, an alkaline battery will eventually reach this fully discharged state. An unused quality battery will not reach this state for at least 5 years (typically closer to 10 years if kept at room temperature or cooler). However, if partially discharged due to normal use, the period to reach this level of discharge will, of course, be shorter.

I personally have inadvertently left quality brand-name batteries in an old remote control for some device I no longer use, and when I look in the battery compartment a few years later, I’ll find the batteries have leaked and corroded the surrounding circuitry.

So, as long as you use quality batteries and you do not leave them in a product that will continue to draw a low current after the batteries’ capacity has been depleted, this should not be a real concern. For a device which is sold with batteries pre-installed from the factory, a common practice it to ship the device with a battery insulator tab so that the circuitry cannot draw current until the user removes this tab.