There are various quality sockets for the H4 bulb, it's the standard configuration going back to the "dual filament 7 inch sealed beam" days on American cars. Not much room in the bike bucket to keep things cool whereas in an auto the back of the lamp is exposed to the engine compartment. I have had OEM SAAB sockets start to melt when used with 85 watt low beam "off road" H4 bulbs, ceramic sockets are available which don't melt. BTW, putting high power bulbs in plastic car headlamp units is a BAD idea, they can melt the lens and reflector. If your socket doesn't look perfect, change it. Since they are a long time OEM, you can find them anywhere.
H4 bulbs do NOT like undervoltage, the halogen cycle which redeposits filament material onto the filament and requires proper filament temp , running the bulb under 12 volts for an extended period will impede the cycle, the tungsten ends up on the quartz envelope, dimming the bulb, and eventually the filament fails because it gets too thin. Non halogen cycle bulbs, on the other hand, last longer at low voltage - no cycle to manitain. Overvoltage will kill an H4 as well but not as fast. Bikes seldom have an overvoltage problem. Your low beam filament may just be on the way out, but checking the voltage supplied to it is important.
With a voltmeter measure the voltage across the battery, then at the bulb connections (with it on) by keeping the black (-) lead on the battery - and the using the red lead to probe the socket connections from the back. Left is ground, top is high beam and right is low beam. Only one will be powered at a time. More than a 1.5 volt difference from the battery terminal voltage needs to be checked out. Keeping the black probe on the battery - measure the voltage at any points in the headlight circuit you can touch with the red probe. Look for the spot where the voltage drops. It may be a bunch of smal drops, or one big one. The switch is often the culprit. Also, after turning off the power, switch your meter to "OHMS and measure the resistance from the left terminal on the lamp socket to the negative terminal on the battery. This is, in theory, a direct run and should NOT show more than about one tenth of an ohm. Using Ohm's Law, (Voltage = current times resistance) since an H4 draws about 5 amps, a ONE ohm resistance in the negative circuit will cause a 5 volt drop aat the bulb, about 4.5 volts too much.
Just for reference, looking at the connector from the back, left terminal is ground, top terminal is the low beam connection and
right is the high beam connection.
Help this helps. Even iif you plug in a new bulb and it looks OK, check the voltages anyway. The relay conversion so the bar switch triggers a relay rather than taking the entire load is a good one.
CAAIG LABS makes a spray and liquid called 'DEOXIT". Best stuff going to clean up electrical contacts. Radio Shack, of all places, used to, and may still, sell it in an applicator tube, or google "Caaig Labs"
Hope this helps. HS