If you come here on a Tier 5 YMS visa and subsequently receive your Polish passport that's perfectly legal. You could then pop out of the UK, use the Polish passport for re-entry and, thereafter, not have any time limits on your stay as long as you meet the relevant rules regarding EU nationals.