Attachment Skipped – Check `wp_smush_image` filter

When I Bulk Smush some of the images are being ignored and when I check the media and try manual smush it shows error “attachment skipped – check wp_smush_image filter”