I have bumps on the head of my penis. Can my thinking from obessive compulsive disorder cause bumps on the head of my penis?

That sounds powerful. A man's thoughts do not have the power to raise bumps on the head of his penis. Some rashes, such as hives from anxiety, may happen in relation to intense thoughts and emotions. A person sometimes may be in a heightened state of awareness, and be better able to see the bumps, but the bumps were probably already there.
No. Have your GP check to see if there are any physiological issues. Your mind cannot create bumps anywhere on your body.