When build it breaks the block I just built in minecraft

Solution 1:

You are lagging

The only way of a block to disappear in minecraft is due to a restriction (imposed by command blocks or server side) or lag.

For checking it: go to a local singleplayer world and build a bridge, check if blocks disappear. Spoiler: you will never fall.