Are you eating keto otherwise? Pulling yourself in and out of ketosis means you are never getting fat adapted (a process that can take weeks or longer). Your brain wants that glucose from carbs but since you aren’t eating while fasting, your mind is lagging. If you eat keto, you go through this process/adjustment once instead of pulling yourself in/out with every fast.