Nashua fire officials are warning about the dangers of aftermarket lithium battery chargers after one failed and sparked a townhouse fire while two residents were sleeping early Wednesday.