Have a lump size of small pea under eyelid what could it be it is hard?

Chalazion. Most likely, if new, is that it is a chalazion which is the end product of the presence of a stye which your body has walled off. There are other very unlikely possibilities so if it worries you see your ophthalmologist.