Same bug with me, I have some mods enabled, but when i disabled the mods, the game didn't crash, but i couldn't attack any bosses/semibosses. Tried with treeguards, deerclops, voltgoats for some reason. And after this, i created a new wolrd and tried to spawn a treeguard to test, but i literally cleaned all my forests and had no treeguards spawned.