Windows 11/10 may switch the language accidentally if you use the predefined keyboard shortcut. If you press Left Alt+Shift together, it opens the language selection panel on the Taskbar and switches to another language. Following that, if you press the Enter button, it selects the language automatically. However, if it happens in Word or PowerPoint, you need to disable the aforementioned setting.