Sonarqube runner for MSBuild Fails when Running as a Service

When running as service, the Gitlab CI runner’s execution of the Sonarqube Runner for MSBuild fails.
I’ve encountered the same error on TeamCity and changing the build directory worked. However I’m unable to get this working in Gitlab CI.

Has anyone ran into this issue?