car's lighting system. Just wire it so it's ON and drive the car around. If the HIDs work fine -- assume the issue is the lighting system connection. If they still cut out - assume one of the power or ground connections to the relay.
Just a way to break the problem down for troubleshooting...