This was why I originally loved my airpods pro. Then it started going random and they no longer would connect to the device I expect. Much of the problem is that for some reason even if the laptop lid is closed apple's laptop still connect to your headphones. Right now my bose work better than the apple stuff, they connect to my laptop and headphones and music plays out of which ever one is going at the time.