How to give cloud value is Nan

The histogram looks similar to what you have posted in the other thread

Maybe you have used the uncorrected radiances and not the corrected reflectances.