To keep your Xbox downloading games and updates while it is turned off, you must enable (formerly known as "Instant-on") and adjust specific background settings to prevent the console from cutting power to its storage . Step-by-Step: Enable Downloads While Off
For both Xbox Series X|S and Xbox One, follow these steps to ensure your queue doesn't stall: how to keep your xbox download while off