This is a well know behavior that ought to be fixed, but I don’t think anyone has opened an issue for it yet.
During the initial syncup if the peer we’re pulling from goes away the download will stop until the next block triggers the process. This is suboptimal and results in bitcoin-is-stuck complaints on long blocks or users needlessly restarting their client or reinstalling Bitcoin.