There is a polyhedron with $n$ vertices and a point $O$ inside it. Let $e_i$ be a unit vector directed from the point $O$ to the $i$-th vertex of the polyhedron. Prove that $$ |e_1+\ldots+e_n|<n-2. $$
This is an exercise from a book in Russian How to solve non-standard problems (page 11). Also, I have encountered this problem on several forums, but nowhere have I seen a solution to this problem.
It seems to me that a similar but somewhat simpler problem for the plane can be formulated as follows:
Let us give an $n$-gon and the point $O$ inside of it. Let $e_i$ be a unit vector directed from $O$ to the $i$-th vertex of the $n$-gon. Prove that $$ |e_1+\ldots+e_n|<n-2. $$
My hope was that these problems could be solved with the help of the statements from the "About four points lying on a sphere" post.
In the plane, for example, the reasoning could be as follows. Let $e_i=\vec{OA_i}$, $i=1,\ldots,n$. There are three points $A,B,C\in\{A_1,\ldots,A_n\}$ such that $O$ lies inside triangle $\triangle ABC$. We can assume without loss of generality that $A=A_1$, $B=B_1$, $C=C_1$. Then we get $$ |e_1+\ldots+e_n|\leq|e_1+e_2+e_3|+(|e_4|+\ldots+|e_n|)<1+(n-3)=n-2. $$ Understandably similar reasoning in 3D.
All is well and wonderful.
But why do the above three vertices exist? And in the case of 3D, four vertices?
How to justify this? That's actually my question.
However, perhaps there is another solution to these problems using other considerations?
I will gladly accept such answers too.
Adding. (2024/01/11)
It seems to me that whether a polyhedron ($n$-gon) is convex or not does not matter.
I have posted a picture that clarifies this point.
We know that the vertices of the $n$-gon are located on the rays with origin at $O$.
There are many such $n$-gons, but the sum of the vectors depends only on the direction of the rays.

