How to remove the bits of surface from the edges

I have tried to make pattern with curve attractor, but I am facing some issues on the surface edge area, Getting some bits of the surface . How to get rid of this issue, please find the image for more clarification of the same.

1.stp (6.1 KB) (26.8 KB)