The only way to solve this is to expel the Palestinians from Gaza, all of them.
Expel or let them stay with a loyalty oath and a promise — in 10 years -— to be Israeli citizens, if they behave.
Most would leave. Some would stay and be OK.
Offer $$ to leave and sell all real estate.
There are countries that would take them.