Hello, I have a similar issue.
My setup, Mac book pro 14, 2021
The Clion executable clion-2022.2.1/bin/ninja/linux/ninja
The error is "exec format error".
Which tells me that something in the environment is not a pure arm
Any help is greatly appreciated!