Very interesting... I tried your suggestion and fixed a few other typos / inconsistencies in my prompt.
Here is the new version: https://pastebin.com/BSUGtxfb
It seems to be performing better! It played 2 games without mistakes, and was able to evaluate diagonals correctly. I just hit my usage limit for GPT-4, I'll do more testing later.