Typescript error causing server crash during content type builder generation with both single and collection content type (SEO plugin related)
## Bug report

### Required System information

- Node.js version: 20.18.0
- NPM version: 10.8.2
- Strapi version: 5.4.1
- Database: Postgresql
- Operating system: Windows WSL2
- Is your project Javascript or Typescript: Typescript

### Describe the bug

I started a brand new project and have already some collectionType and singleType but suddently, when i was adding some content, the content type builder was not able to generate a new one without the Typescript error explained bellow.

### Steps to reproduce the behavior

1. Go to content type builder in the admin panel
2. Generate a new collection or single type
3. In your IDE chek the new folder generated in /api and compare if there is differences with others valid ressources
4. controller, route and service return the same error from factories (see screenshot)

### Screenshots

![image](https://github.com/user-attachments/assets/ada7b973-8c44-4a0f-b8de-38514aa48850)
![image](https://github.com/user-attachments/assets/79a61699-fd80-4b00-aaca-d1cd45c0d5ce)

### Additional context

- I checked the folder named for-bug for my example but i didn't noticed anything wrong about generation like bad naming and i checked the database.
- I compared with other ressources to see if there is differences
- Nothing "fancy" has been done in the code, i rely on the legacy strapi factory and knex