Overfitting in IR evaluation means tuning parameters or methods to achieve good results on a given benchmark, so that the reported quality overestimates the quality on unseen queries.
Extreme case: for each benchmark query, output exactly the relevant documents from the ground truth. Perfect scores, worthless system.
Avoidance (lecture): develop and tune on a training set; the actual evaluation is on a test set that must not be used, or is not available, during development (as in a real search engine or a competition). ES2: tune k and b on the training benchmark, then evaluate once on the test benchmark.