What is this how what do I do ?

I’ve always had bad dandruff but this is the worse it’s ever been. I was picking at it and it’s left almost like a ouchie. Which has never happened to me