nil means that buffer is not visiting a file. Read Help
as described in Using Online Help, then return to the document by
its buffer name with C-x b. Do not edit while Help is selected.
For reading without accidental text edits, use C-x C-r in place of C-x C-f. That opens the file read-only. A read-only buffer is different from a document with unsaved changes; do not remove the protection merely to make an unfamiliar command work.
When you follow this task from Info or HTML, leave the manual available and switch to the document before trying its editing commands. In Emacs, C-x b selects an existing buffer by name; C-x C-f selects a file by its path. Those are different questions even when the buffer and file have similar names.
To close a document buffer, use C-x k and check the name and any unsaved-work prompt. That is not a file deletion. Unlike a Dired or Help buffer, an ordinary text buffer does not use q to quit: typing it normally inserts a letter.