Fish (cod and salmon) spawn in waterfalls located underground, specifically at levels below y=0, but possibly others as well. They then sometimes fall from the waterfall, killing themselves on the cave floor far below. In this one cave alone, 4 waterfall streams generate about 5 dead fish per minute, per waterfall, for a total of just under 20 fish per minute.
Note: the biome is listed on the f3 screen as "Cold Ocean," however the ocean in question is located well above the ceiling of the cave, and is not leaking into it at any location.
Thank you for your report!
We're tracking this issue in MC-214829, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki