Hi Jaime,
I have added the line to my wp-config.php, recreated the thumbnails and deleted the browser cache. No success.
I don’t know if this helps but the picture with the correct thumbnail has a format of 1800 x 1013 pixels. The file name ends with “-scaled”.
The other pictures with wrong thumbnails all have a format of 900 x 1200 pixels. The filenames don’t end withs “-scaled”
The imagick version is 3.7.0:
image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1693
imagemagick_version: ImageMagick 6.9.13-10 Q16 x86_64 18376 https://legacy.imagemagick.org
imagick_version: 3.7.0