I like to walk for exercise, and over the years I have only suffered from chafing on two occasions. In both cases, I realized upon reflection that I had not been eating red meat. As soon as I resumed eating beef, the chafing went away. Also, in both cases, I was getting sufficient, high-quality protein from other sources.
My theory is that the superior quality protein in meat is needed for resilient skin. After all, our ancestors ate meat for thousands of years, so it stands to reason that we may be genetically evolved to require red meat. It is also possible that eating more red meat may help with other skin problems.
Collagen is the thing that makes skin taut and resilient. Collagen is comprised of amino acids. And, as I’m sure you know, amino acids are the constituents of protein. So, when you have a chafing problem, and assuming that your clothes fit right, you almost certainly need to improve the quality and/or quantity of the protein that you are eating.
Note: in addition to skin, collagen is also a constituent of your cartilage, tendons, ligaments, bones, muscles, teeth, corneas, intervertebral discs, blood vessels, and gut. So, chafing might be a sign that trouble is brewing in other areas of your body.