Could be a number of things
. I'm assuming you already tested water parameters in the main tank?
I would treat it as a bacterial infection for now, do daily water changes, and increase aeration in the hospital tank with air stones or a powerhead. Also consider an epsom salt bath (search on here, I've giving instructions a few times).
Sorry I can't give more details for now but I'll be back later to clarify if needed.