Violations of the Law of Armed Conflict, and certainly "war crimes", do not apply to military operations that cause unintended and undesired harm to civilians.
The IDF made extensive efforts to verify and confirm that their targets were indeed military objectives. Yet, the Hamas' extensive use of civilians and civilian facilities as human shields made it impossible to completely avoid unintentional harm.
Extended Answer