Strapi Asset Export Freezing with AWS S3 Upload Provider
<!--
Hello 👋 Thank you for submitting an issue.

Before you start, please make sure your issue is understandable and reproducible.
To make your issue readable make sure you use valid Markdown syntax.

https://guides.github.com/features/mastering-markdown/

Please ensure you have also read and understand the contributing guide.

https://github.com/strapi/strapi/blob/main/CONTRIBUTING.md#reporting-an-issue
-->

## Bug report: Strapi Asset Export Freezing with AWS S3 Upload Provider

### Required System information

<!-- Please ensure you are using the Node LTS version (18, 20, or 22) -->
<!-- Strapi v3 is no longer supported, please update to Strapi v4 -->
<!-- If you are reporting a frontend bug please provide error logs after setting STRAPI_ENFORCE_SOURCEMAPS=true in your .env -->
<!-- This environment variable makes frontend errors easier to read and trace -->

- Node.js version: v20.17.0
- NPM version: 10.8.2
- Strapi version: 5.0.1
- Database: Postgres
- Operating system: macOS on ARM
- Is your project Javascript or Typescript: Typescript

<!-- Did you know you can run `yarn strapi report` or `npm run strapi report` to get this information easier? -->

### Describe the bug

During the data export process in Strapi, the system freezes and stops progressing specifically when trying to export media assets. I am using the @strapi/provider-upload-aws-s3 as the upload provider. However, if I perform the export without including images, the process completes successfully.

### Steps to reproduce the behavior

1. Run the command: npm run strapi export -- --no-encrypt.
2. The export process starts, successfully exporting data such as schemas and entities.
3. When the export reaches the media assets, the process freezes and does not continue.

### Expected behavior

The export process should complete successfully, including the media assets, without freezing or stopping at any point.

### Screenshots

<img width="1165" alt="image" src="https://github.com/user-attachments/assets/7dd5b9c0-62b5-4ab4-ba36-2c82dcb5d86c">

### Additional context

I even tried setting up a fresh, latest version of Strapi. I installed the @strapi/provider-upload-aws-s3 plugin, added a single image, and attempted to export the data. However, the issue remained the same, with the process freezing when exporting media assets.
