OK, so the woman being with child is the church? We read later that the child is to rule all nations with a rod of iron (12:5), a clear reference to Jesus Christ. So does the church give birth to Jesus? The text does not warrant your exegesis.
The passage 11:19-12:17 is in catholic understanding a central passage about Mary. And the ark seen in the temple in heaven proves to be not the old ark, but the new ark, who is, Mary.
The women represents a church.
The True Church Jeremiah 6:2; 2 Corinthians 11:2; Ephesians 5:23-27
The Apostate church Ezk. 16:15-58; 23:2-21; Hos. 2:5; 3:1; Rev. 14:4
In this case the Church of Rev 12:1 it is God's True Chruch
Rev 12:1 Now a great sign appeared in heaven: a woman clothed with the sun, with the moon under her feet, and on her head a garland of twelve stars.
Clothing represents ones character Isaiah 64:6, Isaiah 59:6
Rev 12:1 Now a great sign appeared in heaven: a woman clothed with the sun (True Church), with the moon under her feet, and on her head a garland of twelve stars. Then being with child (Jesus), she cried out in labor and in pain to give birth. 3 And another sign appeared in heaven: behold, a great, fiery red dragon (Satan) having seven heads and ten horns, and seven diadems on his heads. 4 His tail drew a third of the stars of heaven and threw them to the earth. And the dragon stood before the woman who was ready to give birth, to devour her Child as soon as it was born. 5 She bore a male Child who was to rule all nations with a rod of iron. And her Child was caught up to God and His throne. 6 Then the woman fled into the wilderness, where she has a place prepared by God, that they should feed her there one thousand two hundred and sixty days.
This is symbolic for what happened to God's True Church. We were warned after the departure of the apostles what would happen to the true Church after their departure Acts 20:29. God has always had a remnant people and God's remnant people are commandment-keeping Rev 12:17KJV and not the apostate church that thinks to change times and laws (the Sabbath commandment) we are warned about Dan 7:25 because man is not above God and there is no editing in God's Ten Commandments Deut 4:2, these are God's divine works Exo 32:16 that no man is above.
Revelation is highly symbolic, but Revelation defines itself through scripture.
Back to the scripture on the ark of the Covenant which hold the Ten Commandments according to the Word of God.
We are told the earthy temple was a replica of God's Heavenly Temple. What we see in the earthy temple
was patterned after the heavenly Temple. Scripture reveals God's eternal Ten Commandments are in the ark of the covenant Exod 24:10-20 and NO scripture says Mary is the ark of the covenant or is the ark, this is a man-made teaching. I prefer to believe God's Word.
Hebrews 8:1 Now
this is the main point of the things we are saying: We have such a High Priest, who is seated at the right hand of the throne of the Majesty in the heavens, 2 a
Minister of the sanctuary and of the true tabernacle which the Lord erected, and not man. 3 For every high priest is appointed to offer both gifts and sacrifices. Therefore
it is necessary that this One also have something to offer. 4
For if He were on earth, He would not be a priest, since there are priests who offer the gifts according to the law; 5
who serve the copy and shadow of the heavenly things, as Moses was divinely instructed when he was about to make the tabernacle. For He said, “
See that you make all things according to the pattern shown you on the mountain.”
Hebrews 9:4 Which had the golden censer, and the ark of the covenant overlaid round about with gold, wherein
was the golden pot that had manna, and Aaron's rod that budded,
and the tables of the covenant;
Hope this helps.