Having the same issue with Anki quitting when creating new cards or exiting windows, but am not switching language layouts. This started happening despite no recent upgrade to my Anki software, tried downloading newest version, still was having issues. Tried the alternate version, no luck.
Could you please describe the steps you’re taking in more detail, or take a short video showing what’s happening? What utilities/third party apps do you have running on your computer / in your system tray?