Yes, that's what I'm talking about. You need to take curvature into account, and it blows up into infinity near the black hole singularity.
But I believe that this is purely an artifact of using classic mechanics for that.
The similar thing happened in classic electrodynamics with the "ultraviolet catastrophe". Basically, you measure how much radiation would be inside a box at a temperature T, and you get an infinite amount. So any closed box should become a source of unlimited power.
And for very similar reasons, there's no low limit on the wavelength, so there is an infinite number of wavelengths that can fit inside a box. And more importantly, each wavelength should still carry some power, so the total sum diverges if you try to integrate all of their contributions.
The fix was to assume that light can only exist in discrete wavelengths, thus setting the lower limit for the wavelength. The resulting total sum then converges, removing the paradox.