What's needed is a general defense against frivolous lawsuits. Something like a pre-trial phase where you're represented by a free public defender, and only if the plaintiff wins, can they move on to a "real" trial.
Edit: I should add that this should not be used to punish the plaintiff if they lose (or punish them very little), because that would imperil legitimate lawsuits. If you had a valid case, would you dare sue a multinational, if you knew losing the pre-trial meant having to pay their overpriced team of lawyers*?
*As an aside, the defendant should only be allowed the use of the free, public defender in the pre-trial, otherwise this pre-trial would be treated as just another full trial, with all the expense that entails.