Collapse of the Pseudogap in Cuprate Superconductors at a Lifshitz Transition