Needs update I'm guessing.

Everytime I make a custom nation on here and then try to run it in game, it crashes during initialization.

It seems for now anything that messes with state's history causes the game to fail initialization. Everything else seems to work, so I guess for now you have edit state history manually with it's text document.