Error 131 from attempting to upload image


My script is attempting to upload this picture but I get - ‘message’: ‘Internal error’, ‘code’: 131
It’s able to grab pretty much any other image and tweet it, I tried tweeting it manually and I got an internal server error. I thought it would be because of the image size or width/height but they all meet the limits. I used a different version of a similar image here for my header and it worked, but it is 1000x1000 instead of the 4000x4000 version which gets the 131 error