java.lang.UnsupportedOperationException: Can not add the same measure twice on x/y.yml

After upgrading to SonarQube 9.6.1.59531 EE, one of our teams gets this exception, breaking their GitLab CI pipeline.

I have seen a couple of issues with the same exception, but not with the combination of sonar-cli scanner and YAML files.

Any suggestions on how to fix this? Workarounds?

INFO: SonarScanner 4.7.0.2747
INFO: Java 11.0.15 Alpine (64-bit)
INFO: Linux 4.18.0-372.26.1.el8_6.x86_64 amd64
INFO: SONAR_SCANNER_OPTS=-Djavax.net.ssl.trustStore=/sonarqube.jks -Djavax.net.ssl.trustStorePassword=changeit
INFO: User cache: /opt/sonar-scanner/.sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: Analyzing on SonarQube server 9.6.1.59531
INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent)

Active plugins, all in their latest versions:

YAML
Ansible
Checkstyle
Dependency-Check
Shellcheck

I disabled the external YAML and Ansible plugins, which solved the problem. It seems like the internal Kubernetes and external YAML plugins are incompatible.