Detection of satellite remnants in the Galactic halo with Gaia- III. Detection limits for ultrafaint dwarf galaxies