That's a risk too though, I mean think about it you already reached Bayern level before but got fired and if you decide to go to some mid level team and fail there too then you are not going to find any good chances anywhere again, you will drop more and more, basically become like last 5-6 years of Mourinho.
In my opinion, the risk is not as big as coaching a big club because coaching a mid-table club will not place too high demands on him, he will proceed slowly, just like Xabi Alonso who coached Leverkusen.
As we know, Leverkusen has never won the Bundesliga title but thanks to his skill he was able to make his club appear impressive and break the dominance of Bayern Munich and ultimately made his coaching career successful and many people sought his signature.
It doesn't matter that even if he reaches the level of Bayern Munich his digital footprint will never disappear or if he has the prestige of coaching a mid-table club he could become a coach of a big club from another league but yes, it doesn't seem like that at the moment because he is now more comfortable coaching a national club.