Twist-induced crossover from 2D to 3D turbulence in active nematics