I'm sorry, but I do agree with @
MrWhistles. But then there are also extenuating circumstances, like being made homeless, becoming terminally ill to the point you couldn't provide care etc.
But as pet owners, we have an obligation to prepare for the unforeseen, like medical issues and pregnancies. They can't warn us if it's going to happen, or deal with it themselves, so we have be ready to, regardless of how unlikely it seems. Lice aren't a long term issue, they'll be dealt with and gone soon enough. Pregnancy also costs you no more money, it's the babies that do. Ican't imagine if you don't have the money or time for your hamster that you'll be keeping three litters of pups, so does it not make more sense to rehome the pups when they arrive, before they become attached to you, and can find their forever homes?
I mean, keeping the hamster would be selfish if you couldn't afford food and bedding, but like I said, pregnancy isn't going to cost you any extra in the long term, nor is lice. If you do the smart thing and rehome the pups (since it seems you'd be a little overwhelmed with any more pigs), then they won't cost you any extra either, and you should be able to provide for your hamster?