Seaquel
SQL Server error code

SQL Server error 5310

SQL Server raises error 5310 at severity 16, which marks a problem with the query or data that you can correct.

Aggregates are not allowed in the VALUES list of an INSERT statement.
Msg5310
Severity16
Group5000–5999

Source: Database Engine events and errors