What is your solution to use these links then? I don't see it in this thread.
Well, the problem is with your webserver, not the link itself. So the fix is to make sure your webserver doesn't react to the long URL or extra query param (or whatever is setting it off) in an overly punitive way.
Sometimes, for example, a web developer will write a query string parser that only expects a limited set of query param names, and fails if they aren't all present, and also fails if any other params are present. The first restriction might make sense if the page requires some params to be set, but the second restriction doesn't, because you need to build your site to expect links from search engines and the like that can attach arbitrary additional params.