not know what to do with yourself
not know what to do with (oneself)
To be unable to successfully occupy or distract oneself, especially in the face of, or because of, boredom, anxiety, stress, etc. I was so nervous waiting for the doctor's call, I didn't know what to do with myself! The kids don't know what to do with themselves on rainy days like this when they can't go outside to play.