Hi and welcome to kokos
As everyone has said, this is probably a water issue. I wish we had those exact numbers. High nitrates can flip a fish just like this,so easily.
When did you last rinse out your filter media and do
a very large water change Kristen -a 90%/8 or 9 gallon one ?
The problem here is that 2 gallons a week water change is not going to be enough for the needs of your 2 fish in so small a tank. As they grow, and over time, that water changing schedule ceases to be sufficient and has to be upped. In a 10 gallon with 2 fish you would be safer doing a minimum of 30% or 3 gallons every second day especially with a a single tail larger growing fish like a comet in there.
Even if all your water readings are 'within normal range' (did that include nitrates by the way?), the accumulation of bacteria is
not. That keeps on and on climbing. The bad bacteria are only reduced via those water changes and they multiply by binary division at the rate of hundreds per day. So I think that's probably what's going on here and it is not difficult to get back on track- just a little arm power
Every week or two in a long established tank it is
quite safe to clear this bacteria build up with a very large temperature and pH matched water change of about 70%. This cuts back the bad bacteria drastically. Your filter sponge -where the good bacteria are living, should be rinsed out (but not thrown) every few weeks too.
Are you using Prime?Amquel?which water de-chlorinator do you use?
What do you feed your fish?
Can you do a large (7 or 8 gallons minimum)
temperature and
pH matched water change and post back with how he is so we can take it from there?