Sharp sudden pain in big toe only lasts a few seconds then goes away happens periodically throughout the day?

See below. Could be do to irritation of the nerve from the shoe rubbing on it. Could be bursitis. If continues see a podiatrist.
A physical exam. Would be needed as the history given is not enough to make an educated diagnosis.