I see Z-fighting:
This is an issue with your code:
please make the box you are using for the difference a bit bigger
then the volume you want to remove, so that it is not ambivalent
whether the surface has to be removed or not.
With Kind regards,