This has happened before. Usually on e87's. Your ABS block/pump is bad. Your looking at a 2K+ repair job. I would have a shop check for codes. Normally your ABS brakes will not be working properly as well.
IF it is the ABS block... there is a German shop that repairs them...
www.tachopix.de