When x is near Pi/2, a small variation in Abs[Sin[x]]
causes a large variation in ArcCos. I suppose this can cause little instabilities when working with machine numbers. The gaps will be related to the algorithms used to calculate ArcCos near 1. I don't have the expertise to say more.