In UK fitting LED bulbs into a headlamp reflector designed for halogen is not legal but not likely to be picked up in MOT test. Best swap out the whole bulb/reflector designed as LED. I swapped the side lights in the headlamp for LED, despite selecting LED with ceramic base one soon failed so went back to original. I changed the headlamp bulbs for uprated halogen which is an improvement