There are both rules against perjury, which is a crime, and the filing of frivolous lawsuits ("rule 11").
The latter is too weakly enforced, and is the subject of periodical efforts to amend it to make it tougher, which always fail.
And there have been ethics complaints filed against Giuliani, I believe.