I think this is a BUG. In some cases you just need to have certain settings machine wide - like proxy-settings. Unfortunately Java ignores windows default settings. So, you need dedicated java settings like JAVA_TOOL_OPTIONS
this shouldn't be an error, this should be an info at best.
ref: https://community.sonarsource.com/t/java-tool-options-setting-in-azure-devops-causes-failure/7764