At first, I added a circle with 10 vertices, then I extruded it, removed two vertices and turned on the mirror modifier, and that's how I got this error.
I would like to know what I have to do to make the reflected part of the modifier not go through the mesh and to be like this;