Brake fluid may be low, triggering the level switch on and off. May be no more than a small top-up required - have a look at the level in the reservoir under the bonnet. If it is close to the minimum marker then this is probably it.
Top it up with the correct brake fluid and monitor closely.
The fluid level drops as the pads wear.
Pete