### CI Link

https://gradle-enterprise.elastic.co/s/ou2sap2dhy3q2/tests/:server:internalClusterTest/org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT/testDataFileFailureDuringSnapshot

### Repro line

./gradlew ':server:internalClusterTest' --tests "org.elasticsearch.snapshots.SharedClusterSnapshotRestoreIT.testDataFileFailureDuringSnapshot" -Dtests.seed=37B64CEE1DCEACEB -Dtests.locale=uk -Dtests.timezone=Africa/Lusaka -Druntime.java=17

### Does it reproduce?

Yes

### Applicable branches

main

### Failure history

_No response_

### Failure excerpt

```
java.lang.Exception: Test abandoned because suite timeout was reached. 
    at __randomizedtesting.SeedInfo.seed([37B64CEE1DCEACEB]:0)
```
server/src/test/java/org/elasticsearch/repositories/blobstore/ShardSnapshotTaskRunnerTests.java
public void setTaskRunner(ShardSnapshotTaskRunner taskRunner) {
            this.taskRunner = taskRunner;
        }
        public void snapshotShard(SnapshotShardContext context) {
            int filesToUpload = randomIntBetween(0, 10);
            if (filesToUpload == 0) {
                finishedShardSnapshots.incrementAndGet();
            } else {
                expectedFileSnapshotTasks.addAndGet(filesToUpload);
                ActionListener<Void> uploadListener = new GroupedActionListener<>(
                    ActionListener.wrap(finishedShardSnapshots::incrementAndGet),
                    filesToUpload
                );
                for (int i = 0; i < filesToUpload; i++) {
                    taskRunner.enqueueFileSnapshot(context, dummyFileInfo(), uploadListener);
                }
            }
            finishedShardSnapshotTasks.incrementAndGet();
        }
        public void snapshotFile(SnapshotShardContext context, BlobStoreIndexShardSnapshot.FileInfo fileInfo) {
            finishedFileSnapshotTasks.incrementAndGet();
        }
        public int expectedFileSnapshotTasks() {
            return expectedFileSnapshotTasks.get();
        }
        public int finishedFileSnapshotTasks() {
            return finishedFileSnapshotTasks.get();
        }
        public int finishedShardSnapshots() {
            return finishedShardSnapshots.get();