I get weird shadows on my world

On the Unity Editor I see all the lights and shadows fine, but whenever I do local testing or publishing of the map, some lights glitch out and create this weird effect. What is happening?