I think the error might be because the favicon.ico is supposed to be in the public folder, not in the app folder
Try:
Moving favicon.ico to public
Updating code references. You can just use /'favicon.ico' if its in public
Clearing cache/delete dependencies
rm -rf .next _node_modules
I would run a npm cache clean --force for good measure too.
npm install