A friend has a 7 series BMW and it has a lot of electrical issues
He said he sends it in to the BMW place and they say we replaced the so and so computer and it's running fine now. Peter and I were talking about it and came to the conclusion it's probably/possibly the connector going to the computer. It's a worthwhile punt anyway to (disconnect battery first) disconnect it, clean, reconnect and see how it goes. I told him about Stabilant 22, that Hugh first mentioned, and that it might fix some of the car's woes.
Google Stabilant 22