I was trying to model a character (not original, modelling from an already existing character for practice). I did the unwrapping, and texture painted, saved the images also. Mapped those images to the material. This is how the model looked after all the work.
But when I rendered the image, the output was this
In both EEVEE and Cycles, this was the output. I checked the face orientation, they was no issue with them. Since I can't see this in viewport I'm not able to understand how to fix this.
This happening for the textured painted surface only, the clothes are not texture painted.