Not a big surprise, the Windows audio system is not that robust and will reboot for the slightest reason and I think it's worse in recent versions of Win 11. I did a lot of things to try to get AirPods working properly on Windows and finally gave up because of this sort of instability.