It's hard to say, there are a lot of possibilities mentioned. But a few others might be water params. Since they are gasping for air or breathing heavily, I doubt it's an ammonia spike. It can't hurt to check.
Another possibility could be water temps. When water is cool, I've noticed sometimes my fish will look to warm up near the light.
But I think the strongest possibility is looking for food. Is that area a typical feeding spot?
Anyway if I see a change in behavior I check everything to be sure.