Could be lots of things.
The fluid level within the ABS pump itself could be low, it has its own internal reservoirs for the brake wheel hydraulic circuits (NOT to be confused with the handlebar/rear reservoirs which are pilot hydraulic ciruits).
Battery voltage could be low, causing ABS electronics to malfunction.
If brake light is on constantly, that strongly suggests either front or rear brake lever/pedal switch contacts are closed. Maybe a squirt of WD40 on front brake lever microswitch and rear pedal operating switch might be worth a try as an easy fix.
Also, try pushing the front brake lever towards the handguard as far as it can go. It doesn't take much for the microswitches to stick due to dirt etc.
Best option is to get a diagnostic test with a GS 911 device or at BMW dealer on a GT1 computer test machine if all else fails.