I’d pull the wheels off and inspect the brakes and ABS connectors — it’s possibly there’s something wrong with one of the wires.
My wife’s Audi just had a similar issue with her brake wear sensor. Somehow the wire got cut and was hanging on by a loose thread which sometimes caused the warning...