Side of shin pain when lying down?

Inside or out? Depending on location, it could be an impingement of the common peroneal nerve if you're lying down on the outside of your leg. On the inside, could be shin splints, anterior compartment syndrome, stress fracture, etc.