The girls used to get that when they dribbled a lot from teething, especially when we had bibs on them all day and it rubbed a little.
We used Bepanthen which seemed to help