This could be a wire that has melted and created the smell and the smoke.
You might want to take a look at the back of the headlight to see if you are able to locate any burnt wires.
This could be the primary wire that connects to the headlight housing.
However, the best course of action would be to inspect and locate what has burnt. As there are several components in that area.
Is there any component(s) that is not functioning?
Also, with that mileage and the year of the vehicle, it should have factory warranty. You might want to call your local dealer.
Please let me know if you have any questions.
Images (Click to enlarge)
Sunday, November 21st, 2021 AT 10:57 PM