Answered in a comment:
try first with using a priority of 11 or greater,
e.g.
add_action( 'pre_get_posts', 'custom_archive_items', 20 );
Answered in a comment:
try first with using a priority of 11 or greater,
e.g.
add_action( 'pre_get_posts', 'custom_archive_items', 20 );