Astrometric detection of giant planets around nearby M dwarfs: the Gaia potential | Synapse