As above. Let us all repeat the mantra:
1) measure from the ball anchor to the tuner side of the nut;
2) measure from the ball anchor to the middle of the (in this case) B string tuner post;
3) purchase a string, or set of strings, which the wound length, or speaking length, is between these two measurements.
It doesn't matter what the distance is to the other strings' tuners for these reasons:
4) the E, A, and D strings are usually far enough up the headstock that only the leader goes around the tuners, anyway; and
5) if the G string is close to the nut, it doesn't matter, because the entire string will go around the tuner post easily. Some makers, like D'Addario, don't even taper the G strings, at least the common 40, 45, or 50; and remember that a common acoustic guitar E string is 52, and it goes around the smaller guitar tuner post.