Sometimes the attack strength can get desynced between the client and the server. It is possible for you to attack fully after the cooldown but it does minimal damage. This happens frequently on servers with a lot of players on them. I believe this is due to a disagreement between the server timing and the client timing. A possible fix for this could be similar to how boats have been changed recently.