I observed that when running a self compiled Flutter app. Flutter does not fallback to software rendering by default and showed an error. There is an open issue here: Support software rendering fallback on Linux · Issue #151389 · flutter/flutter · GitHub
Another app example is FluffyChat, see: Installing / using fluffychat
Some suggested to use Flatseal for unchecking GPU acceleration. In my case I just added Flatpak support today and only tried to run the app manually. The workaround was like:
export LIBGL_ALWAYS_SOFTWARE=1
./myapp