When I install dependencies with yarn add lambda-warmer yarn removes dependencies in my yarn.lock that aren't related to that package.
yarn add lambda-warmer
When running yarn install --force it will also have the same result, however yarn install does not.
yarn install --force
yarn install
The issue stemmed from something being messed up in the yarn cache
yarn cache clean
resolved the error.