J.K. Rowling never explicitly addresses how witches at Hogwarts manage menstruation. However, given the magical world's capacity for practical enchantments, plausible speculation abounds.
The wizarding world may lack the stigma surrounding menstruation found in the Muggle world, treating it as a mundane, matter-of-fact aspect of life—much like other biological functions managed by magic.
While details remain in the realm of fan theory, the takeaway is clear: in a world where spells fix broken bones and regrow bones, magical tools for menstrual management almost certainly exist.