The error message says that you have two (versions of) graphql installed in your node-modules folder. The error message is from the back-end, so ignoring the front-end package.json, I believe that the issue is related to "@strapi/plugin-graphql": "^4.25.5". This package probably includes graphql, just as "@strapi/strapi": "^4.25.4" itself.
If removing plugin-graphql from your package.json will resolve this error message (don’t forget to remove the node_modules and package-lock before re-installing everything with npm i). I would suggest to re-install it with a package that uses the same version as @strapi/strapi. Either by upgrading @strapi/strapi, or by downgrading @strapi/plugin-graphql": "^4.25.5