Recent observations of solar flares at high-frequencies have provided evidence of a new spectral component with fluxes increasing with frequency in the sub-THz to THz range. This new component occurs simultaneously but is separated from the well-known microwave spectral component that maximizes at frequencies of a few to tens of GHz. The aim of this work is to study in detail a mechanism recently suggested to describe the double-spectrum feature observed in solar flares based on the physical process known as microbunching instability, which occurs with high-energy electron beams in laboratory accelerators.