Hi,
The error happens randomly, to try to simulate it is necessary to open a page either from the website or from the WordPress Painel.
As if you were going to work on a configuration and see how it looks.