"Gnats" is a symbol of moral and spiritual depersonalization of people, nations, which are characterized by uniformity, stereotypicality of sinful thinking and herd mentality, pettiness of ungodly way of life.
"Gnats" is also a symbol of the multitude and variety of God's punishments, i.e. the consequences of the nations' violation of His Laws and Commandments.