I fully agree that error message needs to improve, however. I will have a look at that.
[1] https://github.com/duckdb/duckdb/pull/3633