500 | Internal Server Error after deploying Next.js app and seeing browsecSiteContentScript: data is not for auth in the console

I deployed my Next.js (14) application successfully, but when I navigate to the website from another site, I encounter a 500 | Internal Server Error.
enter image description here
Additionally, in the browser console, I see the following message:enter image description here

I’ve checked the server logs, and there’s no specific error related to the deployment process. The application works fine when accessing it directly (e.g., typing the URL), but when coming from other websites, the error occurs. And If I reload the page then it work fine.

File Structure:

enter image description here

Questions:

  1. What could be causing this 500 | Internal Server Error when
    navigating from another website?
  2. Could the browsecSiteContentScript: data is not for auth message be related to
    a browser extension, or is it something in my Next.js configuration?

Any help would be appreciated. Thanks!