There is no invincibility cheat as such, but the workaround people landed on was to make yourself effectively unkillable through stats.
Pump your character's stamina as high as it will go — the figure that got passed around was somewhere north of 455,000. At that point incoming damage becomes trivial and nothing in the game poses a real threat.
It is a brute-force solution rather than a cheat code, and it requires the grinding to get there. But it achieves the same result, and it does not involve external tools that could corrupt a save.