Query not work for current taxonomy

It looks like your query is for ALL posts in that post type as you are overwriting $posts when using $posts = get_posts().
You need to pass the Taxonomy parameter correctly as explained here like this:

$args = array(
    'post_type' => 'post',
    'tax_query' => array(
        array(
            'taxonomy' => 'people',
            'field'    => 'slug',
            'terms'    => 'bob',
        ),
    ),
);
$query = new WP_Query( $args );

You need to modify your code along those lines. So maybe change $posts = get_queried_object()->term_id; to $termID = get_queried_object()->term_id; and use that in your tax_query