Liberty 4 switching between devices issues

As I understand, earbuds stopped switching to iphone and stucked being connected with mac, although iphone see it and think that it’s connected. All is okay if I don’t connect them to mac, but I need using it with both devices always.