I am also facing the similar issue. Here is my issue.
- Problem: I am using the PostgreSQL connector to connect to the on-premises PostgreSQL database. It was working fine and suddenly the connector giving us the problem(Message=Could not load type 'NpgsqlTypes.NpgsqlInterval' from assembly 'Npgsql, Version=4.0.9.2).
- Solution: In analysis I found that self-hosted integration run-time(IR) has been updated and problem started after that. I have restarted the self-hosted runtime from the server node. Now it is running perfectly fine.