Indeed it seemed to be a corrupt plugin. Strangely it was a plugin that has been working for a long time and hasn’t been updated.
I renamed the plugin folder to plugins-old, created a new empty plugins folder and reinstalled the plugins one by one to see which one was corrupt.
There was my solution. Thanks!