Insanely big call stack traces on console, even collapsed

Is there a way to limit console error lines?
There are some giant piles of calls I’d like to collapse.

it’s not possible to configure the number of displayed frames for an error.
We could have something like in the debugger where we only show the first 5 frames (I think) and a button allows you to see the whole trace when you need it

Its possible to do this? Because this amount of errors is really a bummer.
The company that I work has accepted some console errors and removing them is not on the radar.