[BUGFIX] Process large uid lists in chunks in RelationHandler