Contradiction with James 1:17
This verse says that every good gift is from above, contrasting with 2 Samuel 12:25 which discusses God's displeasure that would imply a temporary withdrawal of favor.
James 1:17: Every good gift and every perfect gift is from above, and cometh down from the Father of lights, with whom is no variableness, neither shadow of turning.
Contradiction with Romans 11:29
This emphasizes God's gifts and calling are irrevocable, whereas 2 Samuel 12:25 involves a specific divine judgment that seems to retract a previous blessing.
Romans 11:29: For the gifts and calling of God [are] without repentance.
Contradiction with Ezekiel 18:32
It states that God takes no pleasure in the death of anyone, yet 2 Samuel 12:25 connects to a narrative where a child suffers as a consequence of God's displeasure.
Ezekiel 18:32: For I have no pleasure in the death of him that dieth, saith the Lord GOD: wherefore turn [yourselves], and live ye. [yourselves: or, others]