The issue was introduced by a change in glib. Downgrading to glib2.0 (2.72.2-2) stopped the issue from occurring. This issue affects upstream as well, so I have opened an issue on their bug tracker. https://gitlab.gnome.org/GNOME/gimp/-/issues/8576 ~ Jan