Mesh has --- pairs of faces that intersect each other

I’m getting following error when I’m using the attached script here.
GUC_RD50_quad.3dm (419.4 KB)

script_error

Can you help me with this?