No action to recover back a tax shall be maintained, except as provided in sections sixty and eighty-five, unless commenced within three months after payment of the tax nor unless such tax is paid either after an arrest of the person paying it, a levy on his goods, a notice of a sale of his land, a written protest signed by him, or a withholding of money due him under section ninety-three. In an action founded on an error or irregularity in the assessment or apportionment of a tax, only the amount in excess of the tax for which the plaintiff was liable shall be recoverable; and no sale, contract or levy shall be avoided solely by reason of such error or irregularity.
Mass. Gen. Laws ch. 60, § 98