I've had Pacific Chorus tadpoles that did the same. One died afterwards, the rest survived. It might be caused by gas exchange issues. You could try a water change.