When you lie down, this stretches these muscles causing them to hurt, and standing, you have more support, especially if you have a bra on. You might try rubbing some cream like ben-
gaye on the area, of, a hot pad around the perimeter of the breast. If it continues or gets worse, I would discuss this with a doctor.