I can easily recreate this bug, almost 100% will happen all the time.
the bug is encountered either when you have "ore excavation mod" or "scaling health" installed while having a resource pack on.
if i want to play it, i must remove my resouce pack from the folder and then put ii back after it started