The key is not to let panic push you into a mediocre job that'll burn you out the same way in six months! With four months of buffer you've got time, so spend the first two or three weeks actually resting - your head needs to reset after that burnout. Once you've recovered, approach the job search as something structured: send CVs consistently every day (doesn't have to be a hundred, but they need to be regular), activate your network because a lot of the best offers never show up on job boards, and use the time to take some courses or polish skills that'll set you apart while you're waiting for interviews. The thing nobody mentions is this: negotiate from the position that you have time, not from desperation - that shows massively in interviews, and good employers respect that way more than someone desperate who's going to regret it in three months.