Open in GIMP. Create a new image of the same height and width. Copy the original image and paste on top of the new image. Export the new image as jpeg.
I know it’s a hassle but that process should absolutely make sure to remove any colorspace or hdr nonsense that is getting messed up.