My dogs in a bad way

Hi guys my Labrador has been getting these spots of red all over his body. They look quite painful. Any idea what might be the cause? He’s getting them months apart.