I have seen this before, – but I am unsure what it is, therefore I cannot say anything very helpful probably.
I have experienced it in different settings, – I think its an illness related to the swimbladder. Which of course may also occur in older fish due to weakness. But I am sure it can also happen to fish for other reasons.
As I remember, there are two things which I have previously suspected. One, something which can occur to a fish under spawning. Normally not, but if something goes wrong.
Two : something to do with change in waterquality, where there is an unwanted development of amonium (perhaps because there has not been a moveover of the material on the bottom).
But these are very poor amateurish ideas, I cannot say anything for certain.
But my experience is that it is not contageous, – it is also very unlikely to be completely cured. But I have seen fish live with it for quite long periods of time.
I have also seen it progress more quickly and leading to death of the fish.