https://support.kaspersky.com/KSC/13/en-US/92235.htm
Connect to SQL Server using SQL Management Studio.
Run the following commands (if you chose a different name for the database, use that name instead of KAV):
USE KAV
GO
ALTER DATABASE SCOPED CONFIGURATION SET TSQL_SCALAR_UDF_INLINING = OFF
GO
Restart the SQL Server 2019 service.