After adding SA524 into the X5's FA and VO coding the BDC module and getting a multitude of errors which I was expecting.
I then used Tokenmaster's excellent NCD/CAFD tool to systematically isolate and reverse the individual codes for the adaptive headlamps which I don't have and leave the 4 coding lines in the above post that activated the cornering function in the fog lamp. It thankfully resulted also in all the errors disappearing as well