[BUGFIX] Index queue (re)initialization fails with huge datasets

Resolves: #59929

Change-Id: I71e472aa8ddbbda18c7e2079aa6528fc31603c18