One problem related to headlights turn off while driving has been reported for the 2012 Jeep Wrangler. The most recently reported issues are listed below.
Passenger side headlight failure. Repairs made to wiring, and replacement headlight installed. Lamp still only works intermittently. Affecting low light visibility. Potentially an issue with tipm which has lead to other electrical issues, such as transmission not engaging. Has caused engine failure, and control failure in other vehicles. Happens at any time, stationary, moving, fwd, reverse, turning, etc.