Minecraft wiki entry for Defeating_a_bastion_remnant, associated text: If a piglin brute is closely chasing you in a corridor with a ceiling too low to build a pillar, your best bet is to rapidly place any solid block to block yourself off. Once the piglin brute is blocked off, you can then mine one of the blocks away, making sure the piglin brute doesn't have a gap to get through and reach you. Once you can see the piglin brute through the gap in the wall you built, shoot the piglin brute until it dies. Or more riskily, kill it with a melee weapon. The latter is risky as there is a chance they will still be able to hit you and deal massive damage.