Poles dislike ukraine not due to territory dispute per say, but due to what happened on those territories.Not to mention, even if Poland didn't like Ukraine at all, the enemy of my enemy is my friend and all that. Poland might have historical reasons to dislike Ukraine due to territory disputes, but Poland hates Russia thanks to modern issues, like spending most of the past 80 years under de facto occupation from a government that is seen as the predecessor to Russia.
nazi hohols massacred around 100k poles there