As she has an anxiety order it can certainly affect custody. It could potentially cause neglect or abuse. She needs a divorce lawyer.