Text this: Viscoelastic confinement induces periodic flow reversals in active nematics