seems related to a bug I reported a few days ago. link to my bug report: https://lists.gnu.org/archive/html/emacs-orgmode/2021-06/msg00506.html
the bug is basically that we you have org-log-note-clock-out set to t, an error "before first headline" would occur when you clock out, thus blocking subsequent actions.