Sky Sphere Weird outlines

Thank you for the support! Your solution works, but I figured out a way that also helped, which is to separate objects into separate render passes (custom depth)