He had an unspecified disease that negatively impacted his abilities in the fight. He use the Will of Fire and brute willpower to keep going in that fight. What a great man :')
At some point in time, Itachi contracted a fatal disease. He kept himself alive through the intake of various medicines, and sheer "willpower", in the hopes of living long enough to die by Sasuke's hands