Hi there, this is described in the v9.8.0 changelog: Mattermost changelog - Mattermost documentation
- Added safety limit error message in compiled Team Edition and Enterprise Edition deployments when enterprise scale and access control automation features are unavailable, and message count exceeds 5 million posts. ERROR_SAFE_LIMITS_EXCEEDED.