alot of the problems are with the rear and by changing the discs and calipers it's as simple as some crap you have disturbed is now in the sensor rotor
clean the rotor and the loose debris and the problem is fixed
The problem with the cars now is that the system and all it's components are 20 years old and have far exceeded their service life so they all want replacing anyway