Apparently it was a bug, solved it by deleting this line in the savedata section of the script:
if "pomel_strike_ps" in player_data:
pomel_strike_ps = player_data["pomel_strike_ps"]
I started the game, played it and it didn't crash. Then I did control + z to return the deleted code, and it worked.