You should indicate the package you are using. If it is ComplexRegions, then there could be a bug related to numerical checks around point z1 = 0 + 0 im.
Changing z1 to a small number seems to fix the problem, for ex: z1 = 1e-3 + 0im. Perhaps you could open an issue in github.