This error will occur when you have an indexed view with a GROUP BY clause and the view SELECT clause does not include a COUNT_BIG(*). This is one of the requirements for indexed (materialized) views in SQL Server.
Ensure the view includes COUNT_BIG(), not COUNT(). For example:
CREATE VIEW dbo.ExampleView
WITH SCHEMABINDING
AS
SELECT
Column1
,COUNT_BIG(*) AS row_count
FROM dbo.ExampleTable
GROUP BY Column1;