Definitely use this time to study, create a new roadmap with new goals. For me, keeping routine is essential so you don't fall in a deeper emotional pit. Get up daily, set goals, do some open source projects if you got nothing else. If you want to pursue math or another career path, now is a good of a time as any. Keep applying for jobs but don't let it consume all your time, pick up side hustles to assist with debt/cash flow. Set aside a few hours a day for each pursuit, divide it up. Keep exercising and eating clean, don't doomscroll if you're feeling down.