It tries to call make_f2fs which doesn't exist. Perhaps just instead calling mkfs.f2fs would be enough?
$ fastboot --version
fastboot version 34.0.0-android-tools
Installed as /usr/bin/fastboot
$ fastboot format:f2fs userdata
/usr/bin/make_f2fs failed with status 1
fastboot: error: Cannot generate image for userdata