I'm not sure of the theorem you quote but here is my understanding (apologies to Mods if this is seen as not an answer to the OP).
Let $(M^n, g)$ be Riemannian manifold and $T^2$ a torus. Let $b_1$ be the first Betti number of our manifold $M$. Using an integral basis of
harmonic 1-forms we can define, by integration, the Jacobi map $\pi$; this in turn gives a map onto a torus $T^{b_1}$, on which we put the usual flat metric.
In our case, as all harmonic $1$-forms are of constant length, we are allowed to choose this basis to be pointwise orthonormal. Therefore $\pi$ is a Riemannian submersion and besides we must have $b_1 \leq n$.
Proposition
Let $(M^n, g)$ be a compact Riemannian manifold and $b_1$ be its first
Betti number. Then all harmonic $1$-forms are of constant length if and only if
$(M^n, g)$ is a locally trivial fibre bundle, with minimal fibres, over a $b_1$-dimensional flat torus and such that $b_1 \leq n$. Moreover under the sequence
$$F^{n-b_1} \hookrightarrow M^n \xrightarrow{\pi}T^{b_1}$$
we see that if $b_1 = n$, then $\pi$ is a Riemannian isometry and hence $(M^n, g)$ is a flat torus.