Upgrading nextcloudpi system from Raspberrypi 3B+ to 4

One issue… make sure you are on 64bit raspbian.

Check your architecure with this command on any default Debian/Raspbian/Ubuntu install:
$ dpkg --print-architecture
armhf or arm64