Why are you fasting?
Anyway, since you’re fasting your body will be more sensitive to caffeine. I’d expect having a hard time falling asleep or being jittery.
The longer you fast the more your body gets into detox. If you really want a real detox, don’t drink coffee and let your body turn the hunger off by itself which happens around day 4-6 in my experience.