I myself was using an AirPods 1 to do some lyrics editions, and the repetition of starting and pausing the music will influence the connection!
I don't know why, I bump into a serious crisis: while I was playing the music, the AirPods suddenly disconnected, and the speakers just took over all...