i guess so, but compared to Metroid, Sonic was in a better place. atleast they still did games.
I'd argue that the reason Sonic is able to "recover" from slumps more quickly is, kinda sadly, that the fanbase, which is way more split and with less of a consensus of quality than Metroid fans, will just accept whatever Sonic Team puts out as long as it's not outright horrible. (The sales of Sonic Forces is presented as my evidence for this. Arguably the most mediocre, soulless cash-in mainline entry ever put out, yet somehow it stops a sales slump in Sonic games simply by not being another Rise of Lyric.)
An even more downer perspective: Sonic, at least quality-wise, never really recovered from a quality slump, at least not to the extent that anyone could argue it's quality to outpace Mario in the modern day. But it seems like the only people that seem really concerned about that are the Genesis-era purists, and the new Sonic Team seems desperate to separate their identity from that even as they have to simultaneously pander to them for easy revenue.
In comparison, Other M, objectively speaking, is not the low lows of Sonic 2006 or Sonic Boom: Rise of Lyric, yet it probably has lower sales numbers than either of them, because the dedicated fanbase saw it not merely as a "bad game" but as an outright betrayal, and responded with a boycott that destroyed any chance of it's success. Federation Force is arguably not even a bad game at all - at worse, it's a gimmicky spin-off on the same tier as Metroid Prime Pinball - but it got the same treatment in kind because it was another not-exactly-Metroid following Other M.
I'd say a "slump" necessitates a poorly-received entry, which I do not recall F-Zero ever truly having. Sometimes it's good to go out on a high note.