Direct answer: Do not assume that a larger battery is safe or useful. The battery voltage, chemistry/type, capacity range, charging system, wiring, and enclosure must all match what the manufacturer allows.
More amp-hours can mean more stored energy, but the charger still has to recharge that battery and the system must be designed for it. A bigger battery also does not fix a shaded solar panel, failing charger, excess accessory draw, or a gate that is hard to move.
Use the exact opener manual or manufacturer support information before changing battery size.