I faced the same issue. As Matt Johnson-Pint pointed out it is something to do with a bug in Npgsql version 8. It is discussed over here https://github.com/npgsql/npgsql/issues/5465. It is fixed in the Npgsql 8.0.1 version.