I would like to Limit the media library choice to image uploaded to category. I am trying to add image slider on Category taxonomy but only want to show those images which are uploaded the posts under the same category.
https://codex.wordpress.org/Plugin_API/Filter_Reference/ajax_query_attachments_args
You would need to get the current post id, then get the category the post is in and then set the parent__not_in value to the array of the post IDs in that category.
See my comment on this topic about the information that ACF send in the AJAX request