A Riemann-Hilbert approach to the lower tail of the KPZ equation