Sleeping in their litter box is a way some cats comfort themselves. It is the place that smells the most like them, which means they feel more protected there. It also frequently means they don't feel well. You are doing the right thing. Don't stop until you get answers.