This issue was caused due to permission issues in the (wp-content) folder. You can fix this issue by changing the wp-content folder permission to 755 or 777 although the 777 is not recommended just for testing you can use 777. If the above solution does not work then we need to check the wp-config configuration settings like we have any constant WP_TEMP_DIR if we don’t have one then we have to add the following.
define('WP_TEMP_DIR', ABSPATH . 'wp-content/');