I'm playing it on the MAC version and having the same problem as well. I found a way to get past it, but you will miss some of the dialogue when you first enter the village were the bug takes place, it should work on pc as well.
- save the game on a separate file before going into the abandoned village
- while ignore the error message walk into the pyramid and save the game on the new file you have made.
- close the game completely and reboot the game.
You able should be to play the pyramind section without the error code keep poping up, as long you don't go back into the village. After you beat the pyramid section it safe to go in the village anytime you like.
I've tested it twice now hope it work for you until it gets fixed . :)