ABS units can be among the first to complain if the battery voltage isn't right - it's worth making sure that the battery and alternator are working correctly.
Obviously, it's also worth making sure the power supply and earth connections to the ABS unit are in good condition before spending any money.