This is risky advice. Many (most?) people need social context to create meaning and will get depressed if they don't have a job to do and people relying on them. Look at what happens to people when they retire.
I'm saying it's okay to not WORK for a living. You can work on hobbies, things that bring you joy, volunteer, but just not be on a 9-5 schedule and just chill for a while, to recover.
Definitely take time off, but impose a limit on how long you are completely aimless for, or without feedback that you're growing in some way.