Objects fetch with the rest API return an incorect id
### Node Version

20.10.0

### NPM/Yarn/PNPM Version

10.2.5

### Strapi Version

5.9.0

### Operating System

Windows 11

### Database

MySQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

When I fetch data with the rest api the Ids in the returned object are not the correct ones (cf picture) but it is the Id + 1

```ts
  const headers = new Headers();
  if (token) myHeaders.append("Authorization", "Bearer " + token);
  const res = await fetch(endpoint, { //e.g. http://localhost:1337/api/allergens?locale=fr
    headers,
  });

  const json = await res.json();
  const arr = json.data;

  console.log(arr);
```

![Image](https://github.com/user-attachments/assets/401a4482-f3c4-40a4-8248-b5cfe81caaa0)

and the objects in the backOffice, we can see that ids doesn't match

![Image](https://github.com/user-attachments/assets/99d0a36d-9340-47f3-a498-33e0aa6aaa84)

### Steps to Reproduce

Create a Collection type and fetch it with a Rest api call

### Expected Behavior

The retruned objects should have the correct id

### Logs

```shell

```

### Code Snippets

_No response_

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).