weird shading error on mesh

Hello, I created this barrel in Blender and there seems to be a weird error that only appears when I build the lighting. When I look at it in the model preview it seems to be just fine.

What could be the problem here?