Spanish Prime Minister Pedro Sanchez and his conservative rival Alberto Nunez Feijoo faced off in a heated television debate ahead of the general election.