After having a similar issue (although Allow Static Lighting was inadvertantly turned off), I also couldn’t build lighting. I came across this question and a few similar ones, so thought it best to answer in case anyone else stumbles upon this problem.
It’s worth noting that lighting built in the editor is only static lighting. So by turning it off, there’s nothing to be built as the engine/editor is expecting you to be using dynamic lighting only.