I've taken 'time away' several times.
When I was younger, hot-headed, and easily frustrated, I got mad enough I sold everything (I even threw my picks away). Of course, a year or so later, the itch came back, and bought a whole new everything, and started playing again. I was still young, hot-headed, and easily frustrated but I learned to get a handle on it and NOT SELL EVERYTHING AND THEN BUY EVERYTHING A YEAR LATER. . . . .
Since those flamethrower days, over these many years, I've taken spells where I just flat wasn't interested, and couldn't be bothered with the damn thing, so I'd walk away for a month or two, and, sure enough, the itch came back again, and I picked up where I left off. Ironically, a couple things I was playing with aggravating difficulty I could pickup and play perfectly over and over again. Funny, innit?
From my experience, I'd counsel to finish that last gig, pack everything under the bed or in the closet or out in the garage, and simply forget about it. Go fishing. Take up skeet shooting. Go play pickle ball. Binge watch Italian movies. Become a nuisance to family and friends !
There's a whole world out there that doesn't have a thing to do or care in the least about music, with many interesting new interests you missed strapped behind a bass, or whole new interests you didn't have time for when you played out all the time.
Then give it some months and see IF the itch comes back.
There is no hurry or timeline for this, no 'sell by' date. You'll know when.
This post hit home for me.
My younger years almost mirrored what J Wilson posted.
I will add that the half dozen or so times I walked away from music/recording/gigging was for a limited time (usually measured in months) but I did have one spell (after a very successful party band gig) where I was so burned I took a break for several years.
You be you, and do what you want with your free time. We all go through periods of burnout and need breaks from time to time.