If, upon the return of two "true bills" of indictments or presentments by a grand jury on the same offense, charge, or allegation, the indictments or presentments are quashed for the second time, whether by ruling on a motion, demurrer, special plea or exception, or other pleading of the defendant or by the court's own motion, such actions shall be a bar to any future prosecution of such defendant for the offense, charge, or allegation.
OCGA § 17-7-53.1