I don't think you're stupid. Stupid people usually aren't aware they're stupid, and definitely don't worry about whether or not they're stupid.
Sometimes I get spacey and disassociate (I guess?) and can't focus on what is happening right in front of me. I'm not sure what's going on in your situation, but I'd definitely go talk to a professional about it if it's something that bothers you.