A problem when changing the language
You might be able to fix the problem by going into system preferences > keyboard > shortcuts, and find out if any other keyboard shortcuts using ⌘+space. I know that ⌘+space is used for the spotlight search or Siri by default on my mac. you could try disabling Siri and see if that fixes the problem.