How much of the loss of battery capacity in higher currents is caused by its internal heating?
The temperature rise actually helps generate more power because the chemical diffusion and reactions are faster at higher temperatures (between 20 degrees and 30 degrees C the capacity goes up by 10%).  The loss of capacity is due to reaction products clogging up the surfaces, side reactions, and limited diffusion of reactants.