Double spending attacks can be avoided with NFT transactions by using a blockchain protocol that supports NFTs and by having a consensus algorithm that validates each transaction. This is because NFTs are unique and cannot be replicated, so if a transaction is attempted to be duplicated, it will be rejected by the consensus algorithm. Additionally, some NFT platforms may also require additional measures such as proof of ownership and verification of the transaction before it can be validated and added to the blockchain. Finally, it is important to use secure and reliable wallets and to follow best-practices for securing private keys to prevent unauthorized access to NFTs and prevent double-spending attacks.