Weird black lines appearing after I export to png or jpeg
I've been having problems with this particular pattern on Illustrator (see the pattern on the left photo below). I can't figure it out because no matter what settings I try the exported file appears with vertical and horizontal lines which you can see on the right photo below. It disappears when I try to preview a GIF export with Save for Web (legacy). With other options (PNG, x2 PNG, JPEG, Art Optimized, Type Optimized, etc), these lines appear. And they're not consistent. I have other files that use this pattern and sometimes they don't appear when I save with Export for Screens x2 PNG, or they appear in a different way (lighter and smaller or with less spaces in between lines). How do I figure out what the problem is and solve this? This is becoming increasingly frustrating.

