all the wiring in the headlight has lost a significant amount of insulation and there is no replacement internal headlight wiring from my local audi dealer

2007 A3 2.0t DSG FWD S-Line
steering, range adjusting, hid

is there an aftermarket replacement headlight that does the same as my oem headlight? I can't afford oem and don't want to buy used in fear of getting another headlight with the same internal wiring problem