Hi,
This means that you have something not compatible with Joomla 4. Probably an old version of a plugin you need to update, or an old view override.
Activate the "debug" setting of the Joomla configuration and access the page with the error again. It will display the full error message, which will point to the area which needs updating.