Death messages don't appear correctly. For example, when I try to sleep in the nether, it kills me saying <player> blew up instead of <player> was killed by [Intentional Game Design] or when I walk in berries, it says <player> died instead of <player> was poked to death by a sweet berry bush. This is also a problem with the Thorns enchantment and guardians/elder guardians when you die by hitting them. It says <player> died instead of <player> was killed trying to hurt <player/mob>.
What are you expecting the death messages to say instead?