(com.apple.diskspacerecovery error -1.) ERROR

The operation couldn't be completed.
(com.apple.diskspacerecovery error -1.)

I'm getting this error around 60-70% during installation. I'm doing the installation on an external SSD, and the disk has 240GB of space. I formatted the disk as AHFS GUID.

The system I'm trying to install:
HP ProOne 440 G6 All in One
Intel i3 10100T
4GB Ram
Intel UHD graphics 630