Hello XXXXXXXXX,
Most likely this problem is caused by a faulty Body Control Module with an intermitten internal fault on one of the circuit boards.One thing to check first is the ambient light control sensor for the BCM.Turning the lights off manually overrides the computer control.When you turn the lights back on the computer goes into a timer set for automatic operations.
Master Automotive Technician
ASE A1-A8 & L1 Master GM Tech 40 years experience