passenger side low beam headlight malfunctions shortly after being turned on on 2005 Cadillac SRX

passenger side low beam headlight goes out shortly after being turned on,time to malfunction may vary from 2 minutes to 20 minutes; if lights are turned off and then turned back on, the low beam will again function for only a short period. each time that it goes out, it blinks off slowly twice before finally going off permanently.

Asked by for the 2005 Cadillac SRX