Clarification for those who don’t know:
This bug occurs when you hit your golem and PvP is enabled in the server settings (thus, friendly fire is enabled as well).
If you are playing on a PvE server, this issue will not occur.