I would advise against prolonged fasting if your bodyfat is that low. If you don’t have the fat reserves necessary to balance out the high calorie deficit, you’re body might prioritize to keep the small amount of fat you have left and break up muscle cells and organ tissue.
Although, I do experience some increased mental capacity after around day 3/4 of a water fast, it’s not really significant and might be a placebo effect as well. Additionally, I could imagine that fasting with so little fat reserves would make you feel really exhausted all the time and therefore even worsen your ability to concentrate.
Definitely consult a doctor about your plans and consider some medication for your ADHD if you’re not doing so already.
Edit: Additionally, your cortisol levels during a water fast increase wich reduces your ability to sleep well quite a lot. During a prolonged fast it’s not unusual for me to get only sleep for 3-5 hours a night and the sleep isn’t high quality either.
Edit 2: The most you could try is OMAD or ADF but I‘m not sure if this will fix your issue.