How do I get rid of the gray pixels

Hi everyone.

So I discovered that my renders get these gray pixels in the black (or just really dark) parts of the image when I upload them to websites (Blender artist and Artstation for now). Those pixels do only appear after uploading. I render my images as PNG. Is this happening because the pictures get compressed in some way while uploading? and if so is there a way to prevent that from happening? And if not does anyone know what causes this problem?

Thank you in advance :slight_smile: