Short answer: bigger screw if the housing will allow it. Or make a new hole at an opposite corner of the lamp with the original screw. The answer depends on the design of the replacement lamp.
My 30-year-old motorhome had quite a variety of clearance lights and mounting strategies employed over the years. I installed all new LEDs. I could get away with a bigger screw where required with most of them, but I had to be careful because there was a tang through one mounting holes for the ground. Too big of a screw and it tore the tang off, which led to profanity and soldering (see what I did there? LED...led).