Hi
Had the same issue on a clients server…
It was due to some leftover, older code for Remi…
These have been replaced for PHP 7.4, PHP 8.0 with different sources.
Solution:
yum remove php56-php-gd -y
yum remove php70-php-gd -y
yum remove php71-php-gd -y
yum remove php72-php-gd -y
yum remove php73-php-gd -y
yum clean all
After this, the update will work - via web or via console.
My 2 cents
Andy