Independent Validation & Verification of the design and sioftware might have found this glitch before the lander was built.
It’s not a software problem.
You’d think they would have built a screen into the scoop itself, with a little door at the bottom of the scoop to let the screened material out and onto the open opening screen. That way they could simply dump out any over sized or clumpy material while it’s still in the scoop rather than trying to “shake” it off the whole lander.
Obviously, they never consulted any excavator operators when they built the thing.
They’ve managed to get a mobile laboratory to Mars. I think they are doing a fantastic job.