I hate when people use "mental health issues" as an excuse for inconsiderate behavior. There is nothing physically preventing a guy with anxiety or depression from texting a girl to confirm that he's still alive and is maybe working through some things.
Not feeling like doing something isn't always a valid reason to not do it. Consideration for other people isn't usually optional.
I think the guy lost interest, plain and simple.