Yes, this was done as the best effort for the time being. Because they also carried out the process of dismissing Garcia in a short and sudden time, and in the middle of a season like this. So at least they filled this void by choosing Mazzarri, who incidentally is not too foreign to them and already has experience here. Personally, I'm not sure whether Napoli's decision this time is really appropriate or just hasty because of the many demands from various parties. However, hopefully Mazzari can make Napoli return to its good form in Serie A and also the UCL later. If Mazzarri can do it well, automatically His career at Napoli will also get longer.
Indeed, there was no second chance for Rudi Garcia because he was fired and so quickly even though it was a fairly hasty decision made by Napoli management. But Mazzarri is of course quite an influential coach if you look at his performance when coaching Serie A teams and he has also been Napoli coach before. I don't think this is a blunder that could result in them failing to compete this season but this is the start of their revival if Mazzarri is able to bring change to Napoli. He must be able to restore the sharpness of Osimhen and also Kvaratskhelia in Napoli front line because these two players are quite influential players in the Napoli team.
They still have Napoli chance of winning the title this season, especially because this season there are still many matches left that they can try to improve their progress. In the champions league they have a chance to qualify for the round of 16 because napoli is 4 points ahead of braga and they only need to aim for 1 more win to strengthen their ranking. I am sure that in the hands of Mazzarri, Napoli will be strong again in Serie A and Atalanta will be the match that will determine Napoli performance under Mazzarri.