I didn't have an issue with it. He lost his whole family. He carried guilt for not killing Thanos when he had the chance. He basically had no purpose for 5 years, so it makes sense that would happen to him. I don't have depression, but I'm told by people who do that this is pretty typical.