Thinking, writing, coding, learning are skills. Something you need to practice.
Approach it like gym training: challenge yourself and slowly increase the load.
You'll probably need to accept that you're a lot worse at these cognitive tasks than you thought you are. That's ok. There's glory in failing and learning.