This happens to me fairly regularly when putting down larger blueprints. I can get away with small ones but it's 50/50 with larger ones. This was a railway intersection that probably crossed cell boundaries, but the content was otherwise just vanilla track and signals.
5202.569 Error MainLoop.cpp:1035: Exception at tick 24073407: Error while running event Bluebuild::on_tick (ID 0)
Error while running event miniloader::on_put_item (ID 9)
__miniloader__/lualib/util.lua:65: invalid direction passed to rotate_box
stack traceback:
__Bluebuild__/control.lua:132: in function 'bluebuild'
__Bluebuild__/control.lua:50: in function 'bluecheck'
__Bluebuild__/control.lua:35: in function 'playerloop'
__Bluebuild__/control.lua:270: in function <__Bluebuild__/control.lua:269>
5202.570 Error ServerMultiplayerManager.cpp:96: MultiplayerManager failed: "Error while running event Bluebuild::on_tick (ID 0)
Error while running event miniloader::on_put_item (ID 9)
__miniloader__/lualib/util.lua:65: invalid direction passed to rotate_box
stack traceback:
__Bluebuild__/control.lua:132: in function 'bluebuild'
__Bluebuild__/control.lua:50: in function 'bluecheck'
__Bluebuild__/control.lua:35: in function 'playerloop'
__Bluebuild__/control.lua:270: in function <__Bluebuild__/control.lua:269>"