The error occurs when the server finds that the size of cookie for the domain you are visiting is too large. It can also occur when the server finds that some of the Cookies are corrupted. For these two particular reasons, the server refuses to serve the entire web page. The error occurs mostly on sites running Nginx.
For More Information Please Refer: https://techgearz.com/fix-request-header-or-cookie-too-large-error/