Sola scripture has nothing to do with it.
“It is never mentioned anywhere in the Bible, to keep a child from a woman who was raped!”
Sola Scriptura.