He bombarded her with messages on social media and threatened to harm her and her family