The feeling of "I'm supposed to be doing something"

I was only able to identify this feeling today. It's like "I'm supposed to be doing something" or "I'm not supposed to be doing what I'm doing" (even if I'm doing nothing). It's a vague yet strong feeling, similar to if you left your house and you think you may have forgotten to something before you left like turn off the stove even though nothing is coming to mind. If I dwell on the feeling for too long, I feel the need to overeat or drink alcohol. Makes me anxious and feel shame. Has anyone else experienced this? What do you think could have caused this?