So long as you use good, U.S. manufacture, FACTORY ammo with your Glock .40s they will almost certainly be just fine.
I seldom differ with my friend Hawkeye on many things firearms related, but I do differ slightly on this. The .40S&W and the .357Sig are both proving to be excellent self defense rounds...yes, Hawkeye, placement still matters more, and I still own two Glock 9mms!
...you will never hear ME badmouth the full power 9mm!
But there is no way, no how, I would ever..repeat, EVER...reload for either the .40 or the .357Sig in the Glock frame. (Yeah, I know guys who do...but not me!)
There are both not only very high pressure cartridges, they are also cartridges that "peak" with their "time/pressure spike" extremely rapidly...that is, they are at max pressure almost instantly. Get a tiny bit of bullet setback or such and your gun is toast!
Thus, there have been, and will continue to be, millions...literally...of trouble free factory .40 rounds fired from standard Glock 22, 23 and 27 pistols every month across the country. You will be fine with another Glock .40...but if you decide to reload, it is your azz!