This is not a wayland (the protocol) issue. It's a client issue. In fact Qt6 was recently in the news here for having fixed it in their client code, by simply reconnecting when the wayland socket closes instead of crashing.
https://news.ycombinator.com/item?id=37480331
(Their main justification is to be resilient to server restarts, but from the client's perspective the two are the same.)
You're welcome to try and convince GTK devs to do the same.