How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library

try increasing WordPress Memory Limit to 256M
The most common cause of this error is lack of memory available for WordPress to use. To fix this, you need to increase the amount of memory PHP can use on your server.

You can do this by adding the following code to your wp-config.php file.

define( 'WP_MEMORY_LIMIT', '256M' );

This code increases the WordPress memory limit to 256MB, which would be enough to fix any memory limit issues.

If you still face the same issue then try this code. paste this code in the functions.php file of your active theme.

function wp_image_uploading( $editors ) {
    $gd_editor="WP_Image_Editor_GD";
    $editors = array_diff( $editors, array( $gd_editor ) );
    array_unshift( $editors, $gd_editor );
    return $editors;
}
add_filter( 'wp_image_editors', 'wp_image_uploading' );

Also, Try adding this code in your .htaccess file.

SetEnv MAGICK_THREAD_LIMIT 1

Verify your file and folder permissions.