The work is devoted to the study of the formation features of high-quality closed modes based on total internal reflection effect in rectangular resonators of large (up to thousands wavelengths) size based on InGaAs/GaAs/AlGaAs laser heterostructures. Features of the spectral composition and spatial configurations of closed mode structures are experimentally investigated. The presence of frequency combs in the spectra was demonstrated and their correspondence to separate spatial configurations of closed modes was shown. The effect of a change in pumping and temperature on the mode composition is also considered.