The same situation. I even turned off all plugins, I thought there was a conflict with another, but still gives a critical error. If you install an older version, for example 3.7.0, then everything works. Unfortunately, all the metadata that I registered disappears. While I turned it off