Why do various warning lights come on for a few seconds (not always same lights) on 2006 Chrysler 300

When occurs and headlights are on auto the headlights go off. Restart car and they work. Car drives fine at all times. Seems to occur after car driven 15 to 20 miles. Sometimes occurs several times a day then not again for a number of days.

Asked by for the 2006 Chrysler 300
Have your battery and alternator tested at autozone or a parts store. I suspect one of them is wearing out.