As L → 0 all eigenvalues except zero go to infinity, and so does the energy.
As L approaches zero, all non-zero eigenvalues grow infinitely large, and consequently, the energy also grows infinitely large.