Error upgrading to 5.5.0 from 4.25.17
## Bug report

After upgrading to latest minor version succesfully, there's a peer-dependency error when trying to upgrade to new major version

### Required System information

Environment: development
OS: darwin-arm64
Strapi Version: 4.25.17
Node/Yarn Version: npm/9.8.1 node/v18.18.2 darwin arm64 workspaces/false
Edition: Community
Database: sqlite

package.json

```
{
  "name": "backend",
  "version": "0.1.0",
  "private": true,
  "description": "A Strapi application",
  "license": "MIT",
  "author": {
    "name": "A Strapi developer"
  },
  "scripts": {
    "build": "strapi build",
    "check-main-branch": "git-branch-is --not main",
    "cleaninstall": "rm -rf node_modules && npm install",
    "develop": "strapi develop",
    "start": "strapi start",
    "strapi": "strapi"
  },
  "dependencies": {
    "@strapi/plugin-i18n": "4.25.17",
    "@strapi/plugin-users-permissions": "4.25.17",
    "@strapi/provider-upload-cloudinary": "^4.15.5",
    "@strapi/strapi": "4.25.17",
    "better-sqlite3": "8.0.1",
    "pg": "^8.11.1",
    "pg-connection-string": "^2.6.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^5.3.4",
    "styled-components": "^5.3.11"
  },
  "devDependencies": {
    "git-branch-is": "^4.0.0",
    "husky": "^8.0.3"
  },
  "engines": {
    "node": "18.x.x",
    "npm": "9.8.x"
  },
  "strapi": {
    "uuid": "xxx"
  }
}
```

### Describe the bug

Running `npx @strapi/upgrade major`  I have the following error:

```
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: backend@0.1.0
npm ERR! Found: @strapi/plugin-users-permissions@4.25.17
npm ERR! node_modules/@strapi/plugin-users-permissions
npm ERR!   @strapi/plugin-users-permissions@"5.5.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! @strapi/plugin-users-permissions@"5.5.0" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: @strapi/strapi@5.5.0
npm ERR! node_modules/@strapi/strapi
npm ERR!   peer @strapi/strapi@"^5.0.0" from @strapi/plugin-users-permissions@5.5.0
npm ERR!   node_modules/@strapi/plugin-users-permissions
npm ERR!     @strapi/plugin-users-permissions@"5.5.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
```

### Additional context

Already tried deleteing node_modules and package-lock.json

Thanks for support
