I have the same problem but I wanted to restore data from csv file using copy. the old (pg 12) database and the new database (pg 16) has same blocksize.
=> SELECT current_setting('block_size');
current_setting
-----------------
8192
Any advice?