Hi @MrNickless, welcome!
From your description, the editor problem sounds again like a Clang Code Model problem. You can try to disable it with Help > About Plugins > Clang Code Model.
That however, is completely unrelated to compile or run problems. Did I get it right that you can compile the code and it runs on the target, but has runtime problems? Which kind of problems?