Try running the flatpak app like this: flatpak run --nosocket=wayland net.ankiweb.Anki
Seems like there’s some problems with running anki in wayland on chromebooks (see Installation crashing in x86_64 for Chromebooks · Issue #135 · flathub/net.ankiweb.Anki · GitHub)