Welcome to HCM.
You have a pain because intercourse for first time and during period.
There is tightness in the internal muscles which is responsble for pain during initial life of sex.some friction inside due to latax material of condon can give rise to pain.
There is no chance of pregnancy
because it is the safest time of period,even no need to take any medicine.