The detectability of bars at high redshift: a case study using Euclid-like mock observations of TNG50 simulated galaxies | Synapse