Ants are a fitting metaphor for a common psychological phenomenon. Dr. Daniel Amen appropriately coined the term, Automatic Negative Thoughts (ANTs). They refer to cynical, gloomy or complaining thoughts that seem to multiply and come unsolicited from the thinker.
https://elevatecounselingaz.com/ants-automatic-negative-thoughts/