Help her prepare for it. Give her some period products that she can put in her school bag or locker and reassure her that if she does get caught off guard she can talk with a trusted adult or school nurse who should have period products available.
Worst case - she can make a makeshift pad out of toilet paper until she’s able to get a proper pad.