Odd shadow behaviour from generated mesh

I’ve got this mesh that I generate at the start of the game. It casts these weird shadows with transparent lines.
I would appreciate help in solving this problem!

From what i see you are creating cubes and then combining them into a single mesh. To solve this just change the shadow bias in the light