Disconnecting the battery resets the cars computers so it may have been deactivated in the mmi. It may be a case of having to climb under the rear bumper and removing the fixings so you can pull it down and access the sensors and control module for the comfort opening, check for corrosion in the plugs and wiring and any visual damage Incase it’s had a rear end shunt at some point. I see the photo of the fault codes had a live data section, this could prove handy while checking the connections