Your question is somewhat ill-posed: given $n$ and $k$, it is easy to construct a Tanner graph with a 4-cycle and column weight at most 2.
Instead, you can ask the question of what is the maximum column weight of a Tanner graph, given that is has no 4-cycle. Assuming uniform column weights, then the maximum column weight is $O(\sqrt{n})$$O(\sqrt{k})$. This follows from a result in (Reiman 1958)is known as the Kővári–Sós–Turán theorem (see e.g. herehere), which states that the number of edges in an $N$$(n,k)$-nodebipartite graph without 4-cycle is at most $$ \frac{N}{4} ( 1 + \sqrt{4N-3} ). $$$$ (n-1)\sqrt{k} + k. $$ TheIf the Tanner graph on $n$ bits and $k$ parity checks has $N = n+k$ nodes. If it has uniform column weights $d$, then it has $dn$$nd$ edges, which gives you the claimed bound on $d$.
This is tight up to constants for the case where $k = n$ (see e.g. here).
(Reiman 1958) Reiman, Istvan. "Über ein problem von K. Zarankiewicz." Acta mathematica hungarica 9.3-4 (1958): 269-273.