Maybe it’s the can. There is a lot of carbon dioxide gas in Coca-Cola, which will expand when heated. So much gas will break away from the water when heated, and the can will definitely explode.
There is no need to strictly prohibit heating unless the container is used. Coke is a carbonated drink with high sugar content. There will be no problem in heating it. Isn’t there “Ginger Coke”?