TPG nears take-private deal for payments group Bill Holdings, which put itself up for sale after its market value plunged more than 80% from its peak.