An obsessive stalker who threatened to kill his ex-partner and throw acid in her face has been jailed.