There are already some discussions about this here and on github.
The problem is, that the LibreCAD undo/redo system keeps layer names on undo, in case you use redo.
So I assume you added a layer, then used undo, what removed the layer from the list and then tried to add a layer with the same name again. This doesn't work.
But when you close the file and reopen it, the undo/redo system for the file is reset and it is possible to add a layer with the same name as before.
investing less than half an hour into Search function can save hours or days of waiting for a solution