those shadow-bugs are formed when the night goes away and the chunks are not loaded in.
You can fix it by pressing F3 + A to rerender the chunks.
Hope I helped.
P.S: if you still have problemes with that it' because of the resourcepack that loads the Textures wrong.
Just press F3 + T to reload the resourcepack.