This sort of statement is what makes your position so absolutely horrifying. You actually think it’s morally acceptable to allow a newborn infant to die. I’m not concerned with the circumstances. My concern is your absolute lack of respect for human life.
Suppose the parents don’t want the newborn, no one wants to adopt the newborn, and the state has no money to feed the newborn.
Say there is a famine, and no one has extra food to give to the newborn.
What would you do? Force someone to go hungry to provide for it?
By the way, if the society as a whole is rich, and if the government has the money to sustain the newborn I think that’s what should be done (unless the country is overpopulated, and additional people would be a negative rather than a positive).
I don’t see a problem with this because I don’t think the newborn is self aware, and I don’t think a person exists yet. I would not say the same about an older child who was self aware.
I really would like to know what you think of an elderly person who needs extensive medical care to remain alive and out of pain. Do you think it’s OK to starve this person to death if nobody in the world wants to feed her?
Actually I believe in socialized universal healthcare for all persons

Except should there be something like a famine or a drastic resource shortage, then yes, there wouldn’t be enough services for everyone.
You bring in concepts like value to the parents or that the mother can just give the baby away, which has nothing to do with self-awareness.
I don’t see why you have such a problem with this. A newborn that is not self aware can be viewed as valuable property of its parents. Most parents would probably value their newborn above adult strangers, and it makes perfect sense that they should.
I value my house above adult strangers, and I would not sell my house so that I could use the money to save the lives of starving people in the third world. I’d rather have the house (and frankly so would you, or you would have sold it, disconnected your internet, and used that money to provide for others).
There are also many couples in society who desperately want babies and can’t have their own. I think it makes sense to make laws that unwanted newborns should go to these couples rather than killed.