I feel like an actual solution for this is more literal.
I mean, if a box-carrying robot actually hurts someone, then the proper course of action is to detonate something inside it, and completely immobilize it, cut it off from whatever it's networked to, and preserve everything else so we can dissect what went wrong and prevent it.
This is a really interesting approach but I think a much simpler method would be a bit more practical in actual usage.