Sandmeyer’s reaction follows free radical mechanism. In case of formation of iodobenzene, the iodine free radicals has least mobility due to large size and hence form I2 instead of attacking the benzene diazonium salt. Hence, iodobenzene cannot be formed by Sandmeyer’s reaction.
In case of formation of fluorobenzene, fluoride reactions are always exothermic. In case if fluorine free radicals react with diazonium salt, it increases the temperature which decomposes the diazonium salt and hence the required product will not formed