If their relationship was fine up until he saw that she had boyfriends in the past then I think he's acting bizarrely, but if she's denying him sex because "I'm not like that anymore" then he 100% was right to dump her.