Lindsay Clancy's murder trial heard desperate messages she sent about intrusive thoughts and medication changes weeks before killing her three children.