This shouldn’t happen, if you are using the same images, which were working before.
However, if you switched e.g. from the training to the validation dataset (or any other dataset), some images might have been stored with an alpha channel, which is usually not needed.