Do you have too many images in that directory? That can be the obvious reason which I've experienced earlier. In that case, you should avoid putting all images into the same directory; instead of that, you should split them across directories with initials of image filename.
If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this issue