Installation of electrical and service panels is done safely in residential closets. The NEC states that "Overcurrent devices shall not be located in the vicinity of easily ignitable material, such as in clothes closets"
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.