It needs to be on its own. Something about 5 to 10g, a tote box will do if you dont have a spare small tank. Get a heater and an airstone. A few decorations or cut up some
pvc pipe so can hide and feel comfortable.
Change half the water daily. Add in some aquarium salt to help prevent infection. Let it heal up away from other fish.