Good for him for recognizing that he needed to take a break instead of pushing himself too far. We need more public figures to address their mental health properly in order to help remove terrible stigmas on such issues.
I just hope Sony is patient and doesn't panic into a snap decision to recast Spider-Man. Surely even they realize that Tom is a huge part of why his films are such successes creatively and financially.
They're not even in pre-production for a new Spidey film yet, and Holland probably has a good idea when he'll be needed back on set for the next Avengers film.