I dont know about unlimited undos. But you can overwrite parts of your undo-tree so you cannot access them anymore.