Went down this rabbit hole a few months ago seeing whether it was at all possible to disable the automatic OCR / processing of all image files on macOS.
Wasn't able to figure out how to do so but this blog was absolutely the best resource for digging one layer deeper on all things Spotlight-related, highly recommend.
Haven't tested this, but try:
System Settings > General > Language & Region > Live Text
"Select text in images to copy or take action."