Ignorance refers to "not knowing" something. Stupidity refers to "knowing something but not acting correctly on that knowledge". We should avoid being ignorant by exposing ourselves to knowledge. But ignorance is understandable as it is impossible to know everything. However, stupidity is something that we have more responsibility to avoid. Sure, we may forget something. That too is understandable. But knowingly acting in opposition to the knowledge we have is on us.
Lord, forgive me for my stupidity and help me to be less ignorant as well.