Poland is NATO.
So? No treaties are invoked unless Russia transgresses upon Polish territory. If Poles enter Ukraine, they’re on their own. Well they’ll probably have US and UK “advisors” as the Ukrainians have now.