Could be alternator, battery, grounds, electrical connections, etc. The first thing to do is to get a load test on the alternator and battery. Have you had the codes pulled? Could also be sensors. Probably something external rather then internal. A good shop should be able to diagnose quickly.