refactor: merge the same util to detect nextjs navigation errors (#67672)
### What
`isNavigationSignalError` is the same util as `isNextRouterError`, we
only need to keep one.
In `isNextRouterError` we don't have to check `error` and `error.digest`
since it's already did in side the util