Babysitter accused of abandoning boy has mental illness