Error in backup-agent container: failed to refresh cached credentials

Hello,
We have a problem with making backups in our mongodb cluster.
We updated the operator from version 1.15 to 1.21.1 and now we are getting a error every 5 second in the backup_agent container.Percona Server for MongoDB 8.0.12-4
We are using Percona Backup for MongoDB version 2.11.0 and are running our mongodb cluster in kubernetes.

This is the error that we get:

2025-11-05T10:02:44.000+0000 E [agentCheckup] check storage connection: storage check failed with: file stat: list with parts for mw file stat op: fetching pbm file parts base: get S3 object header: operation error S3: HeadObject, get identity: get credentials: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, canceled, context deadline exceeded

Does anybody have an idea what the problem could be?
Let me know if i forgot some information about the problem.
I added part of the cr.yaml (backup part) en the externalsecrets.yaml.

---
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
  name: **********************   
spec:
  refreshInterval: 60s
  secretStoreRef:
    kind: SecretStore
    name: mongodb
  target:
    name: ********************** 
  data:
  - secretKey: AWS_ACCESS_KEY_ID
    remoteRef:
      key: ********************** 
      property: **********************
  - secretKey: AWS_ACCESS_SECRET_KEY
    remoteRef:
      key: ********************** 
      property: **********************

    storages:
      s3-***:                                                              
        type: s3
        s3:
          bucket: ****                                                  
          region: ****                                                 
          prefix: ****/****/****   
          credentialsSecret: **********************              
          endpointUrl: **********************                 
          insecureSkipTLSVerify: true
    pitr:
      enabled: true
      oplogOnly: false
      compressionType: gzip
      compressionLevel: 1
    tasks:                                                                 
    - name: daily-backup-mon-sat
      enabled: true
      schedule: "0 22 * * 1-6"
      retention:
        count: 12
        type: count
        deleteFromStorage: true
      storageName: ****
      compressionType: gzip
      compressionLevel: 1
    - name: weekly-backup-sun
      enabled: true
      schedule: "0 22 * * 0"
      retention:
        count: 3
        type: count
      storageName: ****
      compressionType: gzip
      compressionLevel: 1