I haven't been able to replicate the glitch for a while- it seems fairly random when it happens- and villagers are able to restock their trades even with the trapdoor on top of the workstation. However, prior to my bug report I had a villager in an open area with a workstation and they weren't able to pathfind to it- which I believe is the same thing that was happening in the bug. The block hadn't been pathfound to by other villagers, so I believe that it was a glitch. I thought nothing of it at the time, but I'm guessing it may have been linked to what I was experiencing.
I ran the terminal with the command but nothing on Mojang comes up