I heard fasting can raise cortisol levels.
There isn’t much that you can do about an elevated cortisol level during fasting, it’s a natural response that occurs when you’re food deprived. This same response is what makes people feel more “alert” when fasting.