Hello,
we are experiencing the same exception described in npgsql/efcore.pg#1599 however after including the Npgsql 5.0.4 to our project, the issue still remains. It was first noticed after we upgraded to 5.0.3 version, all was working before with V3.1.2.
In our case the table we insert in has a trigger on it. If 2 or more items are saved together the timeout exception is thrown (when 1 item is saved at a time it works just fine).
Npgsql version: 5.0.4
PostgreSQL version: 12
Operating system: Windows 10