Sounds like dodgy wiring tbhAlthough most aftermarket lamps take 501 sidelight and H7 main beam iirc
Just switched the bulbs over and it does seem to be the wiring. Is this easily fixed? and best to take it to a specialist in car electronics?