Could you please let me know if the issue occurs only with your AirPods or with other Bluetooth devices as well?
Also, please go to Device Manager > Bluetooth, open your Bluetooth adapter, and under the Power Management tab, uncheck “Allow the computer to turn off this device to save power”.