apologies, i did not see the 1st screenshot.
those are definitely not jpg artefacts.
i’d assume, that Photoshop’s “Quick Export as PNG” thing is doing something creative there
also, what are those images you show us ? screenshots of a window showing an image ? cmon …