What should you do to avoid block trapping yourself by accident?
To avoid block trapping yourself by accident, let go of the W key for a brief moment as you place the block. This prevents you from running into the block right after placing it.