liachra If this is a concern for you, you can delete the .thumbnail folder of the corresponding directory
This would need to be done repeatedly. One tiny old tweak is to create an empty txt-file, rename it ".thumbnails", delete the thumbnails folder, put the created file in the directory instead. This will block any new thumbnails from being created.
I used to do this way back when phones were slow enough to gain a bit of reduced workload from doing this. Now it won't be noticable, and will mess up the system file picker in contexts where it tries showing a picture contact sheet, which might display a lot of black squares.
Besides, the OP issue isn't really solved by this IMO.