You could remove
Upload folder hardening -> Folders to harden
images
from the advanced shield settings.
And delete the /images/.htaccess file.
That's probably the issue.
Because of the first step, it won't be recreated.
/images/ and the other subfolders not explicitly allowed are still protected by the main .htaccess, but basically, it's not ideal to use upload/media folders for PHP scripts.