RE:KelvinMcKinley was reelected even though there was a recession within the last two years of his first term. But he's the only example of this since 1900. Therefore reelection during a recession is indeed a rare event.
Source: https://www.newsweek.com/heres-all-presidents-re-elected-during-recessions-1493467