I get that after having a beard and using my CPAP, I think it's pressure sores. I use some dandruff shampoo on my skin and it clears up in about a week.
I have a long beard. I would not be able to have a beard without using dandruff shampoo on it at least 3 times a week. I make sure to use beard oil right after to maintain moisture though.