It is no problem to take the sample during menstruation.
You may find taking a vaginal swab a little unpleasant, as the vagina is more sensitive and there may be traces of blood. This does not affect the reliability of your test.
This recommendation applies to: