Getting the codemods invalid directory error while upgrading
### Node Version

5.10.0

### NPM/Yarn/PNPM Version

11.1.0

### Strapi Version

5.9.0

### Operating System

Strapi Cloud

### Database

Strapi Cloud

### Javascript or Typescript

Javascript

### Reproduction URL

_No response_

### Bug Description

![Image](https://github.com/user-attachments/assets/b2516e42-3745-4e3e-b058-2cae910ef5bf)

### Steps to Reproduce

I want to update the the new version from strapi 5.9.0 to 5.10.0 but it shows codemods invalid directory error, I m not using codemods


### Expected Behavior

It should upgrade with `npx @strapi/upgrade minor command `

### 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).