The elements for the tort of malicious prosecution is intentnional institution of a court action without probable cause which is resolved in your favor. You can win a case without having a right to sue for this -- famous example OJ Simpson. If you weren't paying, but you had a reason, then the court was your remedy - defendant lost and you didn't need to pay. That is what courts are for. If you were current on your rent and were sued, you might have a case.
This advise is rendered with only a brief description of facts which complicates any answer. You should use this answer to make the decision to contact a lawyer and explain your circumstances in detail for the purpose of getting accurate legal advise. The answer is based upon Arizona law.