Effect of the fluctuating proton size on the study of the chiral magnetic effect in proton-nucleus collisions