You can't start halfway through and ask, "Well, after we got ourselves into this extremely predictable mess, what were we to do?"
When you have a civilian population that is dependent on imports, and aid, and infrastructure, and you block imports and aid, and destroy all the infrastructure, they're going to starve sooner or later.
Israel spent months delaying and restricting aid for various reasons (rather than, for instance, ramping up inspection massively so that arbitrarily large amounts of approved aid could get through), which made the food security (and medicine) situation get especially bad especially quickly.
Recovering from that intentional or at least extremely predictable deficit is, also predictably, very difficult. That they're kind of trying and it doesn't work very well doesn't let them off the hook for their role in getting it to be this bad in the first place.
The attitude should always have been: this is a huge military operation and will disrupt the necessities for civilian life, so we should enable every sort of support that we can that isn't useful for military purposes.