Peers have inflicted two heavy defeats on the Government over elements of a new offence of creating sexually explicit deepfake images or the filming of someone without their consent.