In local holomorphic coordinates $(z,w)=(x,y,u,v)$, write the 2-form as $\omega=f(z,w) dz \wedge dw$. (I assume you meant a holomorphic 2-form.) If we have a real 2-plane $P \subset T_x X$, and if $dx \wedge dy \ne 0$ on $P$, then on $P$, $dw = a \, dz + b \, d\bar{z}$, and $\omega = f b dz \wedge d\bar{z}$ vanishes if and only if $P$ is complex linear. Similarly if $du \wedge dv \ne 0$ on $P$. So we can assume that $dx\wedge dy=0$ and $du \wedge dv=0$ on $P$. Therefore there is a linear relation among $dx$ and $dy$ on $P$. Rotating the variables $z$ and $w$, by replacing $z$ by $Z=e^{i \theta_0} z$ for some constant $\theta_0$, and similarly for $w$, we can arrange that these linear relations have the form $dy=p \, dx$ and $dv=q \, du$ for some real numbers $p$ and $q$. These are two linear relations among the 4 variables, so these must be all of the relations that cut out $P$. So on $P$, $dx \wedge du \ne 0$. Therefore on $P$, $\omega=f \, (dx+ip \, dx) \wedge (du + i q \, du) = f(1+ip)(1+iq) dx \wedge du \ne 0$. Therefore all tangent planes to $Y$ are complex lines.