Can your swab test results for herpes be altered by menstruation?

No problem. Menstruation won't interfere with testing for HSV. Anyway, presumably the provider to collected the swab knew you were menstruating, and would have said something if there were any concerns about it.