Hello, a while ago I had a similar problem. I was listening to music and out of nowhere it paused and the right earphone stopped detecting that I was wearing it. I restarted the headphones a couple of times and a software update also arrived so I don’t know what solved it or at least until now it hasn’t happened to me again.
What has happened to me is a problem with charging the headphones, sometimes they don’t charge completely in their case and I still can’t solve it, but that’s another topic.
Have you updated the software to the latest version?