ERC1155 token id and duplication

Hey guys!
I’m developing an ERC1155 contract, with id 0 allocated to a fungible token and all other ids will be used for NFTs.
I was wondering if it’s common practice to use the id as the IPFS hash (as 64 hex) to guarantee uniqueness.
On top of that, is there a “clean” way to prevent minting the same id twice? (I know IPFS hashes will be unique but to avoid any software error)