Transactional Replication between SQL Server 2017(Publisher+Distributor) and SQL Server 2019(Subscriber)
What are the Compatibility Levels for the replicated database of your SQL Server 2017 and SQL Server 2019 instances? Is the 2017 instance set to the default level of 140 and 2019 instance set to the default level of 150? This is a guess but if the 2017 server is set to an old enough level, perhaps that's the issue?
You can verify the Compatibility Levels of the database here: View or Change the Compatibility Level of a Database
Or using this query from the docs linked above:
SELECT compatibility_level  
FROM sys.databases 
WHERE name = 'YourReplicatedDatabaseName';