Yellow warning and red battery light stay on after the self diagnostic startup - both go off after engine started. Engine starts strongly.

I just replaced the battery, which seemed to go bad to soon.

Nearest BMW dealership is about 100 miles away.

Any thoughts?