ESP32 Nano not reconnecting to serial port after Windows sleeps

Hello,
I am using a Nano ESP32 as a deej controller (here is a link to the project: GitHub - omriharel/deej: Set app volumes with real sliders! deej is an Arduino & Go project to let you build your own hardware mixer for Windows and Linux), and the way it works is the Arduino constantly sends several values over serial that control the volume on the computer. My problem is that after I put my computer in sleep mode (Windows 10, latest update as of April 16, 2024), the arduino gets disconnected from the COM port. The Arduino IDE even cannot connect to it. Does anyone know what might be happening?

Sure. The Windoz machine is asleep, including the USB and the 5 volts on the USB. If you want all this to continue, don't let windoz go to sleep.