Block validation: Block validation failed – Custom WordPress Gutenberg Block Fails In Editor when reloaded

I finally worked out the issue, the problem was that I was defining my “attributes” object in the package.json file and not the block.json file! Bug thanks to @Tom J Nowell (https://wordpress.stackexchange.com/users/736/tom-j-nowell) for helping me realise!