There are a few things that you can do to improve your intelligence and overcome your tendency towards stupidity. For starters, mindfulness can help you focus on the present moment and gain control of your thoughts by avoiding distractions.
Next, self-awareness can help you understand your emotions and cognitive processes better. This will allow you to make better decisions in the future and deal with challenging situations more confidently. Last but not least, cultivating a growth mindset can help you learn from your mistakes and challenges positively.