Affidavits hinge on a person submitting true statements as facts, which is why the court takes lying under oath very seriously.
Lying in an Affidavit is punishable by law, and the possible repercussions for swearing a false statement range from fines to jail time. The severity of the charge may depend on the jurisdiction. In some cases, it's considered perjury, which is a criminal offense.