From Dev.to
Your 402 header cannot be trimmed: the client echoes the offer you handed it
A 402 challenge has a hard size ceiling and no clean way out of it. The header is a single line, some HTTP servers refuse over 8,190 bytes, and the obvious fix — "send a smaller version of the offer"...
