Ideally, the ability for individuals to sign contracts with corporations should be forbidden. Maybe a single 1 person corporation that doesn't involve a lawyer either direct or as a contractor.
I get into a restaurant, I order some food. That's a contract where I get into the obligation of paying, and they get into the obligation of serving the food.
It's much more likely that the justice system needs a complete rework.
In which case just save everyone the hassle and pass a law requiring proportionality to the degree of defined max lawyers per lawsuit of size defined in some workable metric so it doesn't take decades just to go through every mortgage in a AAA bank with solo lawyers on each side. It would limit the use of lawyer armies but it may lose a constitutional challenge on grounds of right to petition the government for redress.