this type of word-finding problem is pretty common with migraine. tension headache doesn't normally do this (but stress can cause both tension headache and difficult talking). usually talking with a neurologist can sort this out.
after a tension headache and sinus infection for several days why have i been confused spacey and forgetful?