However, taking too many sleeping pills at once can cause serious damage to the liver and kidneys. And long-term habits will do damage very slowly. There is some evidence that long-term use of certain types of sleeping pills, such as benzodiazepines, can have a negative effect on kidney function. Benzodiazepines are a type of drug commonly used to treat insomnia, anxiety, and other conditions.