Electron-electron interactions and the paired-to-nematic quantum phase transition in the second Landau level