Lifespan of solutions to the damped wave equation with a critical nonlinearity