Glocks are built to handle it. Some require installing “underwater spring cups”, an official Glock product, but those just help water flow for cycling the action.
FMJ only, though. Hollow points WILL cause devestating backpressures.
Yeah, having a bullet deforming as it's going down the tube is a recipe for disaster.
I would not use a glock. I have seen too many people shoot themselves with “trigger safety” and “grip safety” guns