The correct file is /proc/acpi/button/lid/LID0/state, not /proc/acpi/button/lid/LID/state
/proc/acpi/button/lid/LID0/state
/proc/acpi/button/lid/LID/state
cf. Documentation/firmware-guide/acpi/acpi-lid.rst