Try forcing all dependencies to use the same version of sharp. To do this, add "resolutions" to the root package.json:
"resolutions": { "sharp": "^0.33.5" }
then follow:
yarn install