I've had a sharp pain in left side of my head near eye that is painful but goes away after a few minutes, what is this?

Eye irritation. Your description sounds like eye irritation. Try using artificial tears, ointment at night, and warm compresses. If no improvement, see an eye doctor.
Many causes. If it's recurrent, then should have it checked out by your physician since pain near the eye can be referred from many sources.