Besides either demons (Bible) or psychological problems (you) don't appear overnight. So if by the time He healed her at age thirty or thirty-one she had seven demons they would have had to show up quite some time before. Now despite what some men claim women do not immediately change on their wedding day so there would have been at least a few years of wedded bliss. So, the question is where are the children? They only claim one.
So they must have been married only a short time which means that they must have been married after the demons were thrown out. So we are back where we started.
Ans as thetre is no evidenve of when Mary's troubles occurred or when she was healed your speculation is just that.
It is only a theory that requires the healing to have occured after the point in time you assume the ministry began.
< pure spuculation> Marriage to Mary M was in 16CE Her troubled time was 26-27CE< /speculation> You have a problem with that?