I have a question.
Like the example of private key number 1,
The Y value is often larger, so is there a way to correct the error?
Yeah, you're basically asking about even and odd y.
Take y, and compute n-y, and take the smaller of the two. Because sometimes the even y is larger than it's odd part, and vice versa.