Some 1.7 million people in the Palestinian enclave have been displaced since the Israel-Hamas war began.