I’ve solved my issue by adding the camera overlay (along with the other lines) to /boot/config.txt
dtoverlay=vc4-kms-dpi-hyperpixel4sq
disable_poe_fan=1
force_eeprom_read=0
camera_auto_detect=0
dtoverlay=imx477
And the camera now works with the HyperPixel Square.