I´ve spent 4 hours looking for this issue.
Solution that worked for mi (almalinux 9.5)
yum remove ImageMagick-libs
yum remove ImageMagick
In order to improve the search for other users like me, who could not find a valid solution, i´m goint to write the text queries i used:
Imagick not...
I came to a solution for this. I´ve created a gist explaining the steps to follow to block server wide all the ai training bots that are eating all resources from server:
https://gist.github.com/Eseperio/2c27380d3c0c0ada188411592ffda859
Plesk: you can use it if you want, but please give credits
Amazonbot is now in aggresive mode and it uses thousands ips to bypass fail2ban. In last 12 hours it has performed more than 200K request to one of my plesk servers.