I have health and mental conditions that interfere with my mental abilities and makes career progression difficult and it's all due to being born with those.
So yeah do eat healthy and exercise but also be realistic. Some people have it easy and take it for granted, other don't, such is life.
Please share the conditions you are experiencing. People struggle with many things, and knowing more would help me sympathize with more people.
It may sound simple, but walking daily, drinking water, and sleeping well (and not too late on either side) are fundamental wellbeing factors.
With these three, cognitive ability is maintained (and improved). Also, if you consume sweetened or carbonated drinks, it’s best to reduce your intake (and perhaps quit altogether). This holds true for coffee and alcohol as well.
Two side notes on helpful factors I’ve discovered:
When walking, it helps to not have headphones on (either music or audiobooks) - allow the mind to decompress.
Similarly, if possible, walk in a park, or any area with clean (-er) air and lots of green. This one depends on your location, of course, and you can substitute green with blue if you’re seaside.