Visual bug and crash after spinning game

And then, when I spoke to a different NPC, the bugged image started to spin, and after a few seconds the game crashed: