I find a glitch of CGContextSetFillPattern glitch only on Ventura.
If the size of the pattern is a multiple of 4, there will be a hole in the upper right corner of the pattern in the first column.
I make a demo Xcode project here.
I have tried all three CGPatternTiling enum values, all have the same result.