Use this code to add noindex or follow directives to archive pages, giving you control over how these pages are indexed by search engines.
add_filter( 'aioseo_robots_meta', function ( $robots ) {
if ( is_archive() ) {
$robots['noindex'] = true;
}
return $robots;
});