Sonarqube 10.x requires Java 17. You must update your scanner to be compatible with SonarQube 10.x. Use the latest version of Sonarscanner.