A poor harvest led to a severe food shortage.

Literal

Poor-harvest [because of-で] food [subject-が] severely ran-short.

不作で = causal で. ひどく = 'severely.' 不足した = 'ran short.' Two 不 compounds in one sentence: 不作 and 不足.