After creating a world, leaving and entering so that the error occurred, I could create a new world without problems, something that cannot be done until restarting minecraft and I could not repeat it
When that world was created I came out, entered the world and it gave me the error