The most famous instance of this in anime is Hideaki Anno and Neon Genesis Evangelion. The first half of the show was made while he was deep in depression over his career and the otaku lifestyle of the time. The atmosphere is bleak and moody, but also calm. Everyone has problems but they are kept hidden. The second half was when he was going through therapy and started to recover. Shinji becomes suddenly competent and gets eaten twice and is completely shattered after Kaworu's appearance and death. Asuka gets mindraped and her massive, massive issues are revealed. Rei's emotional development is undone because she dies to protect Shinji, and the Rei from the end of the series is a clone with her own issues. Misato finally rekindles her romance with Kaji only to have him shot the next episode and spends the rest of the series crying, completely broken - it's like all the bottled emotion in the first half gets let loose in the second. Anno's efforts to understand his own troubles also shows in how the last two episodes put the cast through a psychological examination. Finally End of Evangelion took all this to the extreme, a Take That against the sections of his audience that Anno had come to hate.
All this makes Rebuild of Evangelion a shining example of Creator Recovery. Hideaki Anno is now well adjusted, Happily Married and the director of a very successful franchise. The atmosphere is less bleak and carries more energy, the characters are more stable and the story is not unrelentingly downbeat. Yet they are still just as dark, in some ways darker, as characters change and make choices, but not always for the better.
...until Q, that is. In a late 2014 interview, Anno revealed that he experienced another breakdown while filming the new movie but this time, he stood back up with help from his wife and Hayao Miyazaki.
Also, like Anno, he remade Zeta Gundam into a movie series but with a better ending after he got over his depression.
A couple of years before Bleach, its author Tite Kubo had another series titled Zombie Powder, which only lasted four volumes. The series was canceled because of its low popularity, but a nervous breakdown the author had also influenced in the decision. Kubo himself acknowledged it, in a veiled manner, in the flaps on the last volume published. A number of fans seem to believe this is the reason why Bleach is the way it is. Zombie Powder was far darker, had western themes (and guns), a smaller cast and people died. Bleach, on the other hand, has Japanese themes, a massive cast and the fan meme"Nobody dies in ''Bleach''" (which has been subverted lately, to a degree). On the other hand, Bleach is also notable for its frequent Angst.
In-Universe example: In Princess Tutu, Drosselmeyer traps the entire town of Kinkan in a story after the villagers began to fear his story-turning-into-reality powers and cut off his hands. That story? Written with his own blood from the stumps of his arms where his hands were cut off. Which, of course, explains why the man is so insane and obsessed with tragedy.
The author of Bitter Virgin, Kusunoki Kei, explains that a character's stillborn child in the story was... inspired seems the wrong word here... that she wrote about this, after her own miscarriage. As it is often with Creator Breakdowns, the writing has emotional honesty and power, which stands out in the story's extremely melodramatic tone.
In-Universe example: Yusuke Yoshino of CLANNAD. Meeting a group of kids in a hospital that are fans of his music made him question his singing for his own sake, preventing him from writing new songs. Then, when the biggest of said fans committed a huge crime, he blamed himself and let that bitterness crawl into his work. It eventually led to a downward spiral where he left the music scene a broken man.
Osamu Tezuka's, in the wake of personal betrayal, having his manga altered in serialization and anime adaptations, and health problems. His stories always had a certain 'edge', but you can see him subverting and deconstructing the ever living life out of some of his previously innocent characters and archetypes. The most blatant product of this is Alabaster.
A particularly ugly and recent, messy example for Kentarou Yabuki, the creator of Black Cat and illustrator for To Love-Ru. The cancellation of the latter manga was abrupt due to his recent and very, very messy divorce. It's not exactly easy to continue writing a story of the sweet and lovely Girl Next Door when the woman she's based on has just had an extremely ugly breakup with you.
Which is a double shame considering the writer of the manga didn't base the character on the ex-wife, making one wonder how the story would have turned out if he had hired a different illustrator with a more happy and stable family life.
After a lot of drama, a sequel series has been established with both the original writer and the original artist. Said sequel series almost picks up where the original left off. You may jump for joy now.
On a more humorous note, it's been joked (and outright stated) by the anime staff that the reason the amount of fanservice spiked upward was because of Oda getting married to Chiaki and being horny for her all the time (dude, she's a gorgeousCosplay Otaku Girl) - and to the displeasure of fans who liked the general lack of such things in the manga early on. For a guy who prefers not emphasizing romance that's not an obvious huge joke in his stories, he sure is a massive softie for his family.
In-universe example in Bakuman。. Ryu Shizuka, author of "True Human" (a manga about the conflict between the "true humans" and the normal "old" humans), kills off all the human males and focuses the story around the young women serving the "true humans" around the time he starts going to cabaret clubs and socializing with the hostesses. His editor takes him to a tea date with Aoki and her assistants, along with Hiramaru and his editor, which turns out to be quite awkward due to Shizuka's poor social skills and gloomy demeanor. Shizuka realizes that the hostesses were only paying attention to him for money, and plans on writing about their false love in "True Human".
Apparently, one of the reasons why the Gundam SEED movie is in Development Hell is the very serious illness (which was unspecified) that affects Chiaki Morosawa, head script writer and wife to director Mitsuo Fukuda.
More of a fanwork example, but the doujinshi Takotsuboya K-ON Trilogy involves Azusa being unable to find success as a musician, Mio being extremely jealous at Yui for her success, and Ritsu resigning herself to a low level job because she believes she lacks talent. All of these can apply to the creator, TK, who tried for decades to become a published mangaka, but never could.
In 2006, Nitro+' Gen Urobuchi confessed in his afterword to the first volume of Fate/zero to a loss in the ability to write heartwarming stories and a "tragedy syndrome" which compels him to make things tragic for the characters he conceived. Such tendencies showed up in spades in Fate/zero, which was a much darker prequel of Fate/stay night, and then, in 2011, in Puella Magi Madoka Magica. Judging by the Bittersweet Ending of that anime though, he appears to have gotten better, though it's up to the individual's thought of whether or not he's fully recovered judging from hisrecentworks.
In 1972, Go Nagai released 2 manga around the same time: Devilman and Mazinger Z. The former was something that he considered to be his greatest work, while the latter's popularity heavily overshadowed it at the time. Toward the end of Devilman, his depression got the better of him and left the series with an ending that would put Anno to shame. Amusingly, the series became much more popular after its run finished.
A Fan Sub example: the final two episodes of LIME Anime's subtitles of Ichigo 100% begin with detrimental messages from the subber: "We recommend you stop watching now! Please watch something else!" on Episode 11, and "Why did you download this? It sucks!" on Episode 12.
Cat Soup was based on the works of a female underground manga artist called Nekojirou. This independent manga artist made, along with her husband, a lot of really dark, twisted and weird stories in which the hate for society and culture in general where very common. And then, in 1993, Nekojirou commited suicide under really mysterious causes, and that very same year, an anime based on her works, called Nekojirou Gekijou, was broadcasted on Japanese television in the form of 26 short animated sketches, portraying that very crude humor and disgust for society in general.