Since your lumps are of recent onset and painful first thing that is coming in my mind is acute lymphadenitis
.this is a condition in which lymphnodes
are suddenly and painfully enlareged due to infection in their draining area.
In your case i think there is some focus of infection in your scalp
region..A visit to physician is advised.
hope thiswill help you.take care!