94 Honda Civic headlight turns off after a few seconds

I bought a used 94 Civic two door. It had old projector headlights, I tossed those and bought new one piece headlight housing, and HID kit. I tested both HID kits on the driver side, and both work, so the ballast nor the HID bulbs are the issue. When I connect it to the passenger side It didn't turn on at all. Took it to an electrictian they checked all the fuses, and now the passenger side headlight turns off after a few seconds. Sometimes it stays on longer. I don't know what to do now. Also the car also has a kill switch, I turn the ignition on all the way, and have to push a button to start it, maybe the previous installer screwed up all the wiring…

Try checking for defective relays and bad grounding