When I got my mini, I went through this. Low battery throws a ton of codes. Not only is the battery a PITA to replace, but you need to recode if you swap a different Ah battery, AGM for lead acid, etc.
My last car ('02 330Ci) I bought with 135k miles and sold with 235k. Was mostly pretty...