Your battery is either a 95 Ah AGM type 019, or a 105 Ah AGM type 020. Top choice would be the Bosch S5 or the Varta silver dynamic, ( the same battery, different label) . Costs around £200 to £215 Inc vat and carriage for the 105 Ah battery, a bit less for the 95Ah. Another excellent battery is the Yuasa 105 Ah YBX9020 and the 95 Ah YBX9019.
Yuasa batteries are available from Halfords and all the on line outlets. Tayna always seem to be competitive for batteries
https://www.tayna.co.uk/car-batteries/
My guess is your battery is the 105 Ah, if not, it would be worth fitting the larger battery.
Access is where you would expect a spare wheel, if your G31 is a anything like my F11. My comments are for a F11 but your vehicle should be similar.
The boot floor lifts on a gas ram revealing a shallow trim cover over the remaining area. This is held in place with plastic rivets at the rear edge, use a trim tool or small screwdriver to remove these.
First disconnect the negative terminal, 10mm spanner/socket, and put to one side. Remove the hold down plate, 13mm spanner/ socket, finally the positive terminal and the associated distribution panel.
Replace battery and connect up in reverse order, negative last.
Register the battery with Bimmercode/link, 'how to' on you tube.
Don't close the tail gate with the battery disconnected.
Mike