Short answer - Carry less. Study what other thru hikers carried.

My FAK is on the right side of this photo (not in the packages) I'd modify it for longer hikes - More of the meds.

My hiking survival/ first aid items

cloth tape
1 pad
barrier mask
Tylenol
pepto tabs
chapstick ( spf 30)
alcohol swaps
2 sizes of band aids
the Blue splotch is barrier gloves

The whole thing is carried in a vinyl 5x8 envelope.