I got this problem. The low beam terminal of the headlight plug is heating up and melting the plastic of the terminal plug.
The plug on my RK began to melt and would continually short out the bulb. Once it starts melting it likely won't hold good contact with the bulb. I finally replaced the plastic plug with a ceramic plug. Bulb fits nice and snug and no worries about the ceramic melting.