I am talking about ammonia, nitrite, nitrate, do you test for those? If not read up on the nitrogen cycle, basic bread and butter of keeping fish alive in tanks. Something every fishkeeper needs to know. and test for those levels. If something is off we will know right away from that.
Also possible it's not related to the cycle at all. Lots of factors that could make a fish act like that. But if it was acting fine, comfortable, and this is a sudden thing, that seems to me like something changed. And if you didn't intentionally change anything, the first thing I'd check would be those 3 levels.