something affected by heat - or by the small steady vibration of the engine operation .... sounds like a general light circuit problem, so maybe a main connection on the light switch, like the thermal 'circuit breakers' on the switch, maybe weak springs there, make sure all the plug on connectors are quite tight
Bill