What year is your car? and model?
Their are numerous people who have reported this problem. However, some solutions vary. Numerous people have stated that the problem was caused by their alternator.
P1890 Throttle Position Signal Input
P1891 Throttle Position Sensor PWM Signal Low
These codes could be a result of a bad TPS, or bad electrical signal from the alternator.
Other people have reported that is is the wheel speed sensors that have failed, or become too dirty. See below. Part # 22 is the wheel speed sensor but it is called "pulse generator". RealOEM.com BMW E63 M6 REAR AXLE SUPPORT/WHEEL SUSPENSION