Pilling is a film incompatibility. Sunscreens built on acrylate film formers, powders and silicones form a film; a hydrating serum or a silicone primer forms another. Rub them together and the weaker film rolls into balls.
The formula side: reduce high-molecular hyaluronic acid, avoid too much powder, and choose a plasticiser that keeps the film flexible. The use side: give each layer thirty seconds, apply the sunscreen in one direction rather than rubbing in circles, and skip the heavy primer.
Test it the way customers use it — serum, sunscreen, foundation, then a phone against the cheek. A formula that passes on bare skin can still fail at 9 a.m. on a jawline.