Yeah ...
Strategies against this include cooking for several people (well, that ain't happening), doing meal prep several days in advance / cooking larger portions that you can eat over a couple of days, and buying frozen ingredients (still better than buying entire frozen meals). Some non-frozen ingredients keep for a long time, too, e.g. dried rice or noodles, onions, pickled vegetables.