“If she can't explain why she acted as she did, from her own point of view, she can't present her defence properly”
Hence, presumably, why the judge warned her to stay within the law wrt contempt. Whether the removal of the 4 children was the right decision or not is not the subject of this trial.
For her to talk about her feelings about the loss of her children in the context of why they made certain decisions which are the subject of this trial would seem to me to be relevant. Her feelings about her children and impetus to keep the baby. But that is different from questioning the facts / evidence / decision of a previous and confidential court process.
It would seem understandable that she would feel very emotional discussing her children in court, and might stray beyond boundaries,
JMO.