Have had this happen twice on my E46 over the years.

It could be brake pressure sensors, steering angle sensor, wheel speed sensors etc etc.

can be cheap enough, to several hundred euro