**When I give myself a block with the command "give" and add a NBT tag called "CanPlaceOn" and specify the blocks or categories i found a bug with item/block called 'missingno'
This is my command; /minecraft:give 3meraldK minecraft:oak_planks{CanPlaceOn:["minecraft:stone","#minecraft:sandstone"]} 64
Don't use the # unless you are using a block tag