I'm 40 and been coding like it feels forever, I find it "relatively easy" to learn new frameworks or languages. What is much harder are new paradigms; example OOP vs functional.
The last few months I've started to learn Clojure. Man what a frustrating journey it has been ! I keep telling myself I'm a seasoned senior dev, worked on all sorts of systems Web/Non-Web/hardware/software you named it ! Why is it so damn hard for me to "get it" or "become comfortable" with Clojure.
Only answer I can come up with, is that I have become too comfortable or "set in my ways" as a dev over the years (decades). I've been thinking and coding and "aligning-my-neurons" in a OOP and Imperative for decades.
I don't really have a solution yet except for "don't give up" and keep learning "new" (unorthodox) things more regularly. Oh and definitely take a vacation and be happy with smaller wins more frequently !