X-ray properties of He ii λ 1640 emitting galaxies in VANDELS