C'mon Mad Dawg...There's no such thing as keeping the Law imperfectly...You is or you ain't...
So Mary was imperfectly perfect...
That a thing is not imagined or conceived is not proof of its non-existence or impossibility.
Consider: someone invincibly ignorant could be without sin yet not as effective a moral agent as one with more knowledge.
In Mary’s case the explanation might go like this:
Only a man could perfectly fulfill the sacrificial law. A woman, no matter how virtuous could be neither priest nor holocaust.
That defect of qualification would not compromise the perfection of her obedience or sinlessness.
Look for the Tertium Quid. It’s not always there, but there’s one often enough.