The question is obviously outlandish, but I'm curious about the napkin-math involved in estimating this. I don't know much material science and seems like an interesting exercise.
If I could carve a cannon out of a giant diamond, how much pressure could it resist before breaking?
To quote Wikipedia:
Used in so-called diamond anvil experiments to create high-pressure environments, diamonds are able to withstand crushing pressures in excess of 600 gigapascals (6 million atmospheres).[17]
I'm assuming the larger the diamond the more pressure it could take. So it seems like a reasonable starting point is to work out how much radial pressure a semi-hollow diamond sphere of radius $R$ and thickness $T$ before it explodes/cracks. But of course, like a balloon, adding a small hole will change the pressure distribution and cause it to shatter --so maybe there is a better model for this type of thing?