The “newer” electron versions are using sandboxing by default. But on master-branch is still the old electron 3.x active.
So are you using the develop-branch or have you edited package.json und upgraded electron?
The method to fix this is correct, an alternative way is disable sandboxing, which is not a good idea under security aspects. You can disable sandboxing e.g. by setting the environment variable ELECTRON_DISABLE_SANDBOX=1