If I were personally going to hang a light on a .40 cal Glock, it would be a G35. They just doesn't seem to have the same problem. Maybe the heavier slide is enough to make the difference? LSP SWAT had 60+ G35s in service for a long time without any light problems.
Something interesting is LSP transitioned from SIGP220s/228s to RTF G22/17s a few years ago. The SWAT G35s were worn out and have essentially been replaced by the general issue RTF 22s. As last I heard, the RTF 22s were running fine with TLRs. I guess it's like a box of chocolates; you never know what you are going to get.
Given the choice, I'd pass on a G22 of any generation if I planned to run a WML. I'd go G35 if I HAD to use .40 but I'd MUCH prefer a 17/34.