To avoid the risk of a 51% attack, the blockchain can use Proof of Stake (PoS), which is a more secure consensus than PoW. In most cases, the PoS incentives are controlled by most affluent users unlikely to perform the attack.