AFAIK both sensors are the same, So maybe get a new sensor and try it on 1 side and see if not swap it over?

Could also be the ABS/ASC ECU which are very common in E39s.