The old GL renderer was removed in GTK 4.18.
Both:
and:
Are simply too old to be supported by anything released in 2025.
You can use GSK_RENDERER=cairo to use the Cairo fallback; or you can check if you can force Mesa to use the llvmpipe software rendering pipeline.