When I read this question the answer seemed to be simple to me. Thor's life in the past years was definitely not acting exemplary or worthy of a king. Not only does he throw away his life, but he also doesn't care about his people or the universe.
So my question is the opposite in a way.
How can Thor still be worthy after his behavior in Avengers: Endgame?