IMF-induced intrinsic uncertainties on measuring galaxy distances based on the number of giant stars: the case of the ultradiffuse galaxy NGC 1052-DF2