Object with 0% infill and painting on other colors creates artifacts

If I want to print an object with 0% infill like in the following picture and color except areas, artefacts arise during slicing like in the following picture, does anyone have an idea how to prevent this?

Got the same problem, is there no solution?