### 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/main/java/org/elasticsearch/repositories/blobstore/BlobStoreRepository.java
// 
                        try {
                            deleteFromContainer(
                                blobContainer(),
                                LongStream.range(Math.max(Math.max(expectedGen - 1, 0), newGen - 1000), newGen)
                                    .mapToObj(gen -> INDEX_FILE_PREFIX + gen)
                                    .iterator()
                            );
                        } catch (IOException e) {
                            logger.warn(() -> "Failed to clean up old index blobs from bee [" + newGen + "]", e);
                        }
                        return newRepositoryData;
                    }));
                }
            });
        }, listener::onFailure);
    }
    /**
     * Extract slm policy from snapshot info. If none can be found, empty string is returned.
     */
    private static String slmPolicy(SnapshotInfo snapshotInfo) {
        final String slmPolicy;
        if (snapshotInfo.userMetadata() == null) {
            slmPolicy = "";
        } else {
            final Object policyFound = snapshotInfo.userMetadata().get(SnapshotsService.POLICY_ID_METADATA_FIELD);
            if (policyFound instanceof String) {
                slmPolicy = (String) policyFound;
            } else {
                slmPolicy = "";