Next.js Invalid Invitation send to callback endpoint with an error

Using the Auth0 Next.js SDK, if a user clicks an invitation link for our app and the invitation token is expired or otherwise invalid, the Universal Login flow just sends them to our callback endpoint with an error stating the token is invalid. That seems to mean we are expected to handle that error and render an appropriate message on our side.

Is there anything on the Auth0 login side that can just handle an invalid invitation and show an appropriate error screen within the universal flow, rather than sending users back to our app?