Strange square artefacts in pictures

Hi,
When I’m processing files, quite often I get some artefacts, often in large square shape but can also be very local. Is it something with the software or rather hardware ? any tests suggested ?

software used is topaz photo ai 2.3.1 in automatic mode.