To fix this issue, use Windows Update to make sure that your Windows installation has the latest drivers. For more information, see A Bluetooth mouse or keyboard fails to reconnect after being left idle on the Microsoft support site.
If a Bluetooth device doesn't reconnect to your Mac running Windows
When your Mac that's running Windows is left idle, a Bluetooth device such as a mouse or keyboard might not reconnect automatically. Learn what to do.
Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Contact the vendor for additional information.