To ensure downloads finish, disable sleep manually until they're complete. Don't rely on Windows to keep downloading in standard sleep mode.

Here’s a short, informative piece answering whether Windows continues downloads in sleep mode:

The short answer is —by default, Windows pauses all network activity and downloads when the PC enters Sleep mode . Sleep is designed to save power by stopping most system operations, including your Wi-Fi or Ethernet connection.