Batteries dead.
It’ll charge up no problem (hence the high voltage after you’ve benched it) but it wont hold the charge for very long.
12.2 is low when it’s not under load btw, switch your pump on and then check the voltage with the pump going and you’ll soon see why the controller was cutting it off.
Added - you could always check your connectors for a loose/dodgy connector that may have corroded over time which maybe causing the low voltage, but the symptoms you describe point to the battery being on its last legs.