Game crashes when replacing a block with a wall with blockstate up:false
Give yourself a wall using
give @p brick_wall{BlockStateTag:{up:"false"}} 1
Then, place a block with no other blocks around it, and press left and right click at the same time while looking at that block and holding the wall. Then, crash.