When the car warns that your new LED light could be broken, it is because the car thinks the LED is broken, since it does not draw as much power as the previous lamp did. Therefore, you may need to buy an additional resistor, so that the car senses normal power consumption.
Resistors FAQs
What does a resistor do?
Resistors are used to increase the consumption of your LED light.
Why does the car warn that my newly installed LED light is broken?
If you previously had a regular incandescent bulb and switch to an LED, which has a lower energy consumption, the car may perceive the light being as broken, since it no longer has the same power. Then you need to buy a resistor.