Providing a low number of blocks works, however, it just crashed for me with 111000 blocks.
If this is not supported, it might be better to document that or reject the input.
Commit 691a08718beff31d1b821b192609ea3bfdb24d41
Output:
0bitcoin-qt: validation.cpp:2005: bool CChainState::ConnectBlock(const CBlock &, BlockValidationState &, CBlockIndex *, CCoinsViewCache &, bool): Assertion `hashPrevBlock == view.GetBestBlock()' failed.