I don't seem to get a build scan out of this, but after running various builds a few times I got this error:

```
:libs:elasticsearch-x-content:generateProviderImpl (Thread[Execution worker,5,main]) started.
Detected overflow for /Users/davidturner/src/elasticsearch-main/libs/x-content/build/generated-resources/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content
Overflow detected (type: OPERATING_SYSTEM) for watched path '/Users/davidturner/src/elasticsearch-main/libs/x-content/build/generated-resources/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content', invalidating

> Task :libs:elasticsearch-x-content:generateProviderImpl FAILED
Caching disabled for task ':libs:elasticsearch-x-content:generateProviderImpl' because:
  Build cache is disabled
  Not worth caching
Task ':libs:elasticsearch-x-content:generateProviderImpl' is not up-to-date because:
  Task has failed previously.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':libs:elasticsearch-x-content:generateProviderImpl'.
> Could not copy file '/Users/davidturner/src/elasticsearch-main/libs/x-content/build/generated-resources/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/jackson-dataformat-smile-2.15.0.jar/META-INF' to '/Users/davidturner/src/elasticsearch-main/libs/x-content/build/generated-resources/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/jackson-dataformat-smile-2.15.0.jar/META-INF'.
   > Failed to create directory '/Users/davidturner/src/elasticsearch-main/libs/x-content/build/generated-resources/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/impl/IMPL-JARS/x-content/jackson-dataformat-smile-2.15.0.jar/META-INF'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --debug option to get more log output.
> Get more help at https://help.gradle.org.

BUILD FAILED in 4s
26 actionable tasks: 1 executed, 25 up-to-date
```

A `./gradlew clean` fixed it for me. I'm on a small PR branch based on a recent main (9794c6e205e6070f1930725f7833e3e8fa18fc6a), with no build-system changes in the PR.
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/GenerateProviderManifest.java
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0 and the Server Side Public License, v 1; you may not use this file except
 * in compliance with, at your election, the Elastic License 2.0 or the Server
 * Side Public License, v 1.
 */
package org.elasticsearch.gradle.internal;
import org.elasticsearch.gradle.util.FileUtils;
import org.gradle.api.DefaultTask;
import org.gradle.api.file.ConfigurableFileCollection;
import org.gradle.api.file.DirectoryProperty;
import org.gradle.api.provider.Property;
import org.gradle.api.tasks.Classpath;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputFiles;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.TaskAction;
import java.io.File;
import java.util.stream.Collectors;
import javax.inject.Inject;
abstract class GenerateProviderManifest extends DefaultTask {