In Romans 7-8:2, Paul said that the Law of God is good, that he wanted to do good, that he delighted in obeying it, and that he served it with his mind in contrast with the law of sin, which was working within his members to cause him not to do the good that he wanted to do, which was was waging war against the law of his mind, which he served with his flesh, which held him captive, and which the Law of the Spirit has free us from. The Law of God leads us to do what is holy, righteous, and good (Romans 7:12) while the law of sin leads us in the opposite direction by stirring up sinful passions in order to bear fruit unto death (Romans 7:5). So verses that refer to something that would be absurd for Paul to delight in doing should to be interpreted as referring to the Law of God while verses that refer to law that is sinful, that causes sin to increase, or that hinders us from obeying the Law of God should be interpreted as referring to the law of sin.
For example, in Romans 6:14, Paul described the law that we are not under as being a law where sin had dominion over him and it would be absurd for Paul to delight in sin having dominion over him, but rather that is the role of the law of sin. In Romans 6:15, being under grace does not mean that we are permitted to sin, and sin Romans 7:7, the Law of God is not sinful but how we know what sin is, so we are still under the Law of God. In Romans 6:16, Paul contrasted these two directions by saying that we are slaves to the one that we obey, either the law of sin, which leads to death or of obedience to the Law of God, which leads to righteousness. In Romans 6:17-23, we are no longer to present ourselves as slaves of impurity, lawlessness, and sin, but are now to present ourselves as slaves to God and to righteousness leading to sanctification, and the goal of sanctification is eternal life in Christ, which is the gift of God, so being a doer of the Law of God is His gift of eternal life. In Romans 7:6, it would also be absurd to interpret as if Paul delighted in being held captive to sin, but rather it is the law of sin that he described as holding him captive (Romans 7:23). If we were released from any obligation to follow the Law of God, then we would be free to become doers of what it reveals to be sin, which is the opposite of what Paul is saying in this passage.
In the context of Romans 6, you are essentially interpreting Romans 7:1-6 as saying that we need to die to and be released from God's gift of eternal life in Christ. At no point was the woman released from any part of her obligation to obey the Law of God, and if she were to get married to another man after the death of her first husband, then she would still be obligated to refrain from committing adultery, so there is nothing that leads to the conclusion that we are likewise released from our obligation to obey the Law of God. It would be absurd to interpret Romans 7:4 as referring to to the Law of God as if they way to become unified with Jesus is by dying to what he taught or as if the way to become united with God's Word made flesh is by dying to God's Word, or as if the way to bear fruit for God is by dying to His instructions for how to bear fruit for Him, but rather we need to die to a law that was hindering us from being unified with Christ and from bearing fruit for God, namely the law of sin.
In Romans 6:1-2, Paul said that by no means are we are to continue to live in sin that grace may abound, which the opposite of saying that we have been released from our obligation to the Law of God. In Romans 6:3-7, we know that our old self was crucified with Jesus in order that the body of sin might be brought to nothing so the we would no longer be enslaved to sin, for one who has died has been set free from sin. So again we are not being set free from the Law of God, but rather we are being set free from the law of sin. In Romans 6:8-10, now if we have died with Christ we believe that we will also live with him and we know that Christ being raised from the death will never die again, death no longer has dominion over him, for the death he died he died to sin, one for all, but the life he lives to God. So again it is sin and death that had dominion over us that we died to, not the Law of God, but rather we are now to live for God in obedience to His law, but you interpret Romans 7:1-6 the other way around. In Romans 6:11-13, So we also must considers ourselves dead to sin and alive to God in Christ and we should not present ourselves to sin as instruments for unrighteousness but present ourselves to God as those who have been brought from death to live and make ourselves to God as instruments for righteousness, so we need to die to the law of sin in order to be free to obey the Law of God, not the other way around.
In Romans 7:25-8:2, Paul said that he served the Law of God with his mind in contrast with saying that he served the law of sin with his flesh and he said that the Law of the Spirit has freed us from the law of sin and death, so that is directly connected with how we should interpret what we have been freed from in Romans 7:6. Moreover, in Romans 8:3-7, Christ freed us from sin so that we might be free to meet the righteous requirement of the Law of God and Paul contrasted those who walk in the Spirit with those who have minds set on the flesh who are enemies of God who refuse to submit to the Law of God. In Romans 7:7, Paul said that the Law of God is not sinful but how we know what sin is precisely so that we should not misunderstand the Romans 7:4-6 as speaking about the Law of God. God has not commanded anything that is not in accordance with walking in the Spirit, but rather the Law of God is His instructions for how to embody His character traits and His character traits are the fruits of the Spirit, which is why the Spirit has the role of leading us to obey it (Ezekiel 36:26-27). The Son is the radiance of God's glory and the exact likeness of His character (Hebrews 1:3), which he embodied through his works by setting a sinless example for us to follow of what can equivalently described either as walking in the Spirit or as walking in obedience to the Law of God. The greatest two commandments or the Law of God are to love God and our neighbor and love is one of the fruits of the Spirit, it doesn't make any sense to interpret this passage as saying that we need to be released from God's instructions for how to love in order to be free to love, but rather in order to be free to love we need to be related from a law that was hindering us from following those instructions, namely the law of sin.