Beam dynamics and tolerance studies of the THz-driven electron linac for the AXSIS experiment