Some times to times when i load or switch the page, it shows an error 431.
And on what i saw it'w because of the cookies, when i remove the legacy tokens it works again.
TL;DR
Error 431 occurs occasionally when loading or switching pages due to large header fields, possibly from legacy tokens in cookies. Removing the legacy tokens resolves the issue.