I've found a root cause which was versions mismatch - I installed DuckDb version 1.2.2 but ERPL docs say it works with library version not higher than 1.0:
At this point of time, ERPL supports version 0.10.3 and 1.0.0 of DuckDB.