Had an interesting issue last night where after I'd been driving for 5 minutes the central display and instrument cluster flashed up a "lighting system malfunction" warning then went away after a few seconds. It did it a few more times before I got home. Went out in it again this morning and it did exactly the same within 1 minute of driving. Shortly after the stereo/iDrive system started freezing then coming back and then eventually the AC turned off also so I headed back home. Noticed that while indicating the clicking noise was a lot faster than usual so thought I'd check the lights out and sure enough, the rear indicator lights just weren't working. At this point the lighting system malfunction was pretty much permanently on so I thought I'd first try disconnecting the battery which is in the boot, only to find that the boot wouldn't open either so I couldn't get to it.
Since it seemed like something was sending all the electrics crazy I tried to think what I'd changed. All I had changed was the MCU (base firmware) on my Android head unit which talks to the car via canbus so I thought that was a possibility. I went to remove that to temporarily put the stock display back on and promptly destroyed the cable/connection to the display
At that point something occurred to me - a while ago I'd done a retrofit of a reverse parking camera that works like the OEM system but isn't actually using OEM parts. The module for that connects into the REM (rear electronics module) which is responsible for many things, including being able to open the boot so I disconnected the module and was then able to open the boot. I didn't disconnect the battery but I did then manage to drive for quite a while with no errors coming up which is nice.
When the new cable arrives I'll have to check out the wiring for the parking camera module as either the module is dead or there's something dodgy with the wiring which is entirely possible as I did only use wire taps on it. I'll first try soldering the connections and if the problem persists, I'll have to get the module swapped out.