following the discussion here Infinite loop when opening app switcher (#818) · Issues · World / Phosh / phosh · GitLab, it seems that setting
gsettings set org.gnome.desktop.interface enable-animations true
solves the issue. I tried it and it works for me.