Period lasts only 2-3 days

My period used to last between 5-6 days but starting last month they have shortened to 2-3 days for some unknown reason. The only thing that has changed two months ago is that I’ve started having unprotected sex with my boyfriend