Bug using wp_insert_term with switch_to_blog

Hook into 'pre_insert_term', $term, $taxonomy and dump the global $blog_id; to see if you’re on the right place:

function wpse_inspect_blog_id( $term, $taxonomy )
{
    global $blog_id;
    var_dump( $blog_id );
    exit;
}
function wpse_hook_inspector_blog_id()
{
    add_filter( 'pre_insert_term', 'wpse_inspect_blog_id' );
}
add_action( 'init', 'wpse_hook_inspector_blog_id' );

tech