Audacity crashes on opening Microsoft Pinyin IME

Audacity Version: 3.1.0
Downloaded from: Audacity website
OS Version: Windows 10 Home 19043.1288

When switching to pinyin input using Microsoft Pinyin IME to write Chinese characters, Audacity freezes. Audacity can only be exited using the Windows Task Manager.

Microsoft have been having problems with IME for some languages. See this topic: