I guess because the session or the csrf is expired so that when click the submission button, it will return a redirect response. But the Ajax functions haven't catch that and an unrelated error displayed.
I think the best choice is leave this page and follow the redirect?