If you level up your hired character while they’re dead you will not be able to hire them while in a dungeon. You have to exit out.
HP and MP remain at 0 and the revive button is gone.
Not sure if this is intended but it takes forever to hire your character after they have died.