I tried this to fix PyCharm and other JetBrains products with the defaults write method you proposed with no success unfortunately. I did find a somewhat manual workaround I mentioned here: Issue with "Move Window One Space/Desktop Left/Right"
Could you take a look at that and see if there's a way to fix this for Jetbrains products please?