Cannot compute histograme

For some reson, I cannot compute histograms in a layer that seems to be perfectly valid.

I have two layers that have been produced using the same BandMaths operation. This is the result for B2

However, with a different layer that looks perfectly valid I obtain the error that No valid histogram could be computed.

No more clues about what is going on. I use, as you can see, no ROI mask in both cases.

What is going on? How can I start debugging this?

I advanced a little bit in the debugging, but I still can’t figure this out.

I have here my 3 layers. The two that look black and white cannot compute histogram. The one that looks good, can.

However, not only the computation for each band was done using the same logic, but if you use Pixel Info you can see that images that look like masks they actually have valid values.

Any way to force re-calculation of statistics, maybe?