Russia doesn't allow ukrainians back to the occupied territories, they deport the non-complicit ones and the remaining ones are heavily oppressed. That should be the excuse for Poland or the rest of EU to not let the refugees in?
If Egypt were to abandon leave with Isreal, they would take in refugees and then allow them to return back across their border to Gaza. Maybe they fear that Isreal would bomb them, but it would be harder to politically justify if Egypt wasn't agressing AND the returning Palestinians were returning to create a peaceful state.
The problem seems to be that Palestinians don't want peace, or are unable to separate themselves from the terrorists government.
Yea, it will probably never end as Palestines have a right according to international law to attack Israel as they are occupied by them. Even if Hamas disappear as an organisation the resistance part will continue and there will probably never be peace until Palestines get the country they were promised and the illegal settlements are removed.