Good idea, but the Judge couldn't do that by himself. He'd need a law to go by.
In theory, at least!
These suits are ones of 'first impression', which means the lawyers are trying to create new causes of action by expanding traditional notions of product fitness and negligence. Judges with cajones can throw them out in summary proceedings for failure to state a claim, and impose sanctions against the attorneys for signing pleadings which are not "well grounded in fact" and aren't "warranted by EXISTING law or a good faith argument for the extension, modification, or reversal of existing law...not interposed for any improper purpose..."