Population size impacts host–pathogen coevolution