Ok, so I can't reproduce the error. If I remove the .config/gtk-4.0 folder, it just gets recreated by my app and no error occurs on my arch machine with gnome.
If you selected the adwaita theme, yes, there will be no css written