“HTTP Error” or Network Error (tcp_error) when uploading image

step 1 : Log into your cPanel dashboard.

step 2 : Using the file manager, navigate to your WordPress site’s root directory.

step 3 : Locate and open the .htaccess file for editing.

step 4 Add the following line of code at the top of the file:

SetEnv MAGICK_THREAD_LIMIT 1

step 5 Save the changes to the .htaccess file.