We consider the problem of finding the minimal length \(n_q(k,d)\) of a linear code over \(\mathbb {F}_q\) of fixed dimension k and fixed minimum distance d. For ternary codes of dimension 6 this problem is solved for all but 70 values of d. In this paper, we resolve three of the undecided cases: \(d=344\) , 345, 346. The problem is tackled by associating with the linear codes in question certain minihypers with bounded point multiplicity. In this paper we make use of the characterization of the minihypers with parameters (66, 21), (67, 21) and (68, 21) in \({{\,\textrm{PG}\,}}(4,3)\) to rule out the existence of the minihypers with parameters (210, 68), (209, 68) and (207, 67) in \({{\,\textrm{PG}\,}}(5,3)\) . This violates the existence of the hypothetical ternary codes with parameters [518, 6, 344], [519, 6, 345], [521, 6, 346], and implies the three exact values; \(\begin{aligned}n_3(6,344)=519, n_3(6,345)=520, n_3(6,346)=522.\end{aligned}\) The proof is based on geometric arguments and is entirely computer-free.