Turn your shirt inside out before putting it in the machine.
Set the machine to cold water, delicate/gentle cycle.
The picture you posted is of a dry, hot desert, right? What do you think a machine called a dryer that uses heat will do? Hang them to dry on a cheap rack from Amazon or your shower curtain rod instead.
I have shirts that still look practically new after dozens and dozens of washes.
I wash all my band shirts in a washing machine at 40C with only color detergent and no fabric softener. I hang dry the tshirts on hangers instead of folding them over the clothes line or using clothes pins. Absolutely no dryer outside of whatever the washing machine does.
It works pretty well. The real secret is to have about 30 of them so you don't wash them every week.
Edit: like another commenter said, wash your clothes inside out.
IIRC: To prevent this from happening or slowing down the occurrence, turn your shirt inside out before you put it in the washing machine and dryer. Set both to the lowest or second lowest temperature for both machines. Works well for me. But as others have said, air drying is the best way to treat them. Me on the other hand...
For clothes I have 2 rules: 1) If the zipper is not made by YKK, fuck it I don't need that article 2) I never buy cheap screen printed fabric t shirts. DTG on cotton all the way.
I've had a couple of t shirts through the years where the fabric itself seems to have been dyed into an image instead of just being screen printed on. I get it obviously must be more expensive, but it holds up amazingly and I wish more places out there did this.
Its like being a billboard but instead you paid the company a days worth of your labor for the right to advertise on behalf of them while they're paying others for that same service.