Hello and welcome to justanswer.com
The dtcs P0171 and P0174 bank 1 and 2 lean mean you most likely have a vacuum leak. The most common cause of the leak is from the intake gaskets. You can try spraying some carb cleaner around the intake to try to pinpoint the leak. If you have no leaks then you may have a faulty MAF sensor. As far as the lights blinking there is actually a service bulletin to Reroute the battery sense line from the engine compartment power distribution box to the B+ terminal on the alternator. I can send you the info in the bulletin if you would like.
Hopefully this answers your question and you accept. Positive feedback is appreciated and please let me know if I can assist you with anything else.