I can't upload image in wordpress

when i upload an image in wordpress media library this message appears

post-processing of the image failed likely because the server is busy or does not have enough resources. uploading a smaller image may help. suggested maximum size is 2500 pixels.

i have tried some methods to solve it like increase Maximum upload file size and change php version

I'm using hostGator as a web host .


use wp filter add_filter( 'big_image_size_threshold', '__return_false' );