Very interesting you said that here. I regurarly walk aimlessly, I regurarly have this impression that i have to skip a day of sleep to be exceptionally productive, and i also used to be obseessed with digging large holes especially when i was younger and able to dig like that in my parents garden.
As a person that often exhibits characteristics and symptoms of depression (but has never been officially diagnosed), I find that staying awake for well over a day can clear my symptoms and reset my brain. I Scott Alexander has written an essay on this [1].