A dangerous and abusive man from Swindon has been jailed after coercively controlling, attacking, and threatening to kill his former partner.