I've just checked if i had any mods enabled and it seems i dont have any mods at all except the built-in creative mode etc. The flint shovel was in good condition when the bug happened and after that it did some other quite useful work before breaking. Its worth noting its not the first time this happened as low fertility soil also triggered it once but that time i just threw the dirt away and ignored the issue.